使用@ConfigurationProperties注解,Spring Boot Configuration Annotation Processor not configured爆红

使用@ConfigurationProperties注解,Spring Boot Configuration Annotation Processor not configured爆红,第1张

使用@ConfigurationProperties注解,Spring Boot Configuration Annotation Processor not configured爆红

问题分析:
在Springboot项目中使用 @ConfigurationProperties 注解会出现以下提示:

解决方法:
在pom.xml中导入spring-boot-configuration-processor依赖


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

问题成功解决!

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5697725.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存