spring boot Configuration Annotation Processor not configured

问题
我们在使用@ConfigurationProperties注解加载配置文件中的内容时,出现spring boot Configuration Annotation Processor not configured提示,如图:
在这里插入图片描述解决方法:
maven项目,加入以下依赖


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

问题解决!
其实不加也能运行!

你可能感兴趣的:(spring,boot,java,后端)