加入配置类注解 @ConfigurationProperties 后 注解上出现红色下划线

来源:4-1 项目属性配置知多少

Hurricane_mwb

2019-08-26

加入配置类注解 @ConfigurationProperties 后 注解上出现红色下划线

写回答

2回答

最牛白程序猿

2019-09-03

Configuration Annotation Proessor not found in classpath 的错误

解决办法:

在pom中加

<dependency>

   <groupId> org.springframework.boot </groupId>

   <artifactId> spring-boot-configuration-processor </artifactId>

   <optional> true </optional>

</dependency>


1
0

潘俊毅

2019-08-27

上面加上 @Component 就没有了额,报错了可以先看后面的

1
0

2小时快速上手Spring Boot

一切为了效率!两个小时学习SpringBoot,为你省时省力Get干货

11582 学习 · 249 问题

查看课程