如果出现了下面图片中的问题,那可能是你没有引入相关依赖。
在 pom.xml 文件中添加如下依赖项:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
解决问题!!!!
如果出现了下面图片中的问题,那可能是你没有引入相关依赖。
在 pom.xml 文件中添加如下依赖项:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
解决问题!!!!