原文:springboot项目配置类使用@ConfigurationProperties注解时,提示Spring Boot Configuration Annotation Proessor not found in classpath

如上图所示,虽然不影响编译和运行,但是看着别扭。 解决方法:添加下面的依赖 ...

2020-01-06 17:04 0 4608 推荐指数:

查看详情

Spring Boot Configuration Annotation Processor not found in classpath

今天在自己写springboot的demo,想写一个忽略鉴权的配置,用实体属性来读取配置文件中需要忽略鉴权的路径,存入List<String>中,结果idea给我提示了这么一个警告。 我的配置文件这这样写的: 开始没有在意,直接运行了代码,结果给我报了注入为null的错误 ...

Mon Jan 20 01:19:00 CST 2020 0 1238
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM