Spring Boot 踩坑之路之 Configuration Annotation Proessor not found in classpath

  1. 出现spring boot Configuration Annotation Proessor not found in classpath的提示是在用了@ConfigurationProperties这个注解时,所以问题出现在ConfigurationProperties注解。
  2. 根据提示的not found in classpath,查询此注解的使用关于怎么指定classpath,进而查询location,spring boot1.5以上版本@ConfigurationProperties取消location注解
官方解决方案,Maven引入依赖


    org.springframework.boot 
    spring-boot-configuration-processor 
    true 

你可能感兴趣的:(Spring,Boot,Java,EE)