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>

即可解决。

猜你喜欢

转载自blog.csdn.net/m0_37107281/article/details/85232983
今日推荐