IDEA 版本:2019.2
错误:
属性配置>>把配置写在一个类中
写类文件时,
@ConfigurationProperties()提示’spring boot configuration annotation processor not found in classpath’
解决:
在上一行加上 @Component 后,错误波浪号消失。
运行成功。
IDEA 版本:2019.2
错误:
属性配置>>把配置写在一个类中
写类文件时,
@ConfigurationProperties()提示’spring boot configuration annotation processor not found in classpath’
解决:
在上一行加上 @Component 后,错误波浪号消失。
运行成功。