spring boot configuration annotation processor not configured

Spring Boot程序中添加@Configuration@ConfigurationProperties(value='...')注释时,编辑器提示

spring boot configuration annotation processor not configured

解决办法是在pom.xml文件中添加spring-boot-configuration-processor配置处理器依赖即可

	
	......
	
            org.springframework.boot
            spring-boot-configuration-processor
            true
    

你可能感兴趣的:(有缘相遇的bug,spring,boot,java,spring)