写了一个Properties和AutoConfiguration自动配置,服务启动异常,报错需要一个Bean,结果发现了两个 原因: Properties文件头多余一个@Component注解 解决: