天天看点

Spring Boot Annotion processor not found in classpath问题解决方法

Spring Boot 2.0中使用

@ConfigurationProperties(prefix = "xxx")

注解时,

会显示 Spring Boot Annotion processor not found in classpath

处理此问题需要在maven的pom.xml中添加:

<dependency>
		<groupId> org.springframework.boot </groupId>
		<artifactId> spring-boot-configuration-processor </artifactId>
		<optional> true </optional>
	</dependency>
           

即可解决。

继续阅读