1. 程式人生 > >Spring Boot Annotion processor not found in classpath問題解決方法

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>

即可解決。