Springboot1.5以上版本,在使用 @ConfigurationProperties注解的时候会提示“Spring Boot Configuration Annotation Processor not found in classpath”, 这是因为新版本已经取消了对location的支持,替代方案是使用 @Configuration和@PropertySource进行组合使用,例如: @Primary @Configuration @PropertySource(value = "classpath:...
Springboot1.5以上版本,在使用 @ConfigurationProperties注解的时候会提示“Spring Boot Configuration Annotation Processor not found in classpath”, 这是因为新版本已经取消了对location的支持,替代方案是使用 @Configuration和@PropertySource进行组合使用,例如: @Primary @Configuration @PropertySource(value = "classpath:...