关于IDEA报错:spring boot Configuration Annotation Proessor not found in classpath
参考 https://docs.spring.io/spring-boot/docs/1.4.7.RELEASE/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor
参考 https://docs.spring.io/spring-boot/docs/1.4.7.RELEASE/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor
2018-01-29
注释:
@RestController 控制层
@Value("${student.details}") 注入属性
@Autowired 注入对象(对象内包含有各个属性)
@ConfigurationProperties(prefix = "student") 配置对象类
@Component 组件,配置对象类需添加这个注释
多环境配置
(模板)
spring:
profiles:
#active: dev
active: prod
@RestController 控制层
@Value("${student.details}") 注入属性
@Autowired 注入对象(对象内包含有各个属性)
@ConfigurationProperties(prefix = "student") 配置对象类
@Component 组件,配置对象类需添加这个注释
多环境配置
(模板)
spring:
profiles:
#active: dev
active: prod
2018-01-26