The idea springboot + gradle project error springboot configuration annotation processor not found in classpath

The idea springboot project, open a class run.halo.app.config.properties.HaloProperties.java, an error (using gradle compile):

springboot configuration annotation processor not found in classpath

 

Online solutions are inside the pom.xml file to add the following configuration.

<!-- 自定义的元数据依赖->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>

However, when this maven project solutions, when gradle my project.

 

Another problem: many of my java class error: Can not find the method,

I looked down, are getter and setter methods.

The reason: I did not install the plug-lombok, lombok plug-in installed in the idea, can be solved.

 

 

Guess you like

Origin www.cnblogs.com/mediocreWorld/p/11846332.html