1、实体类
(1)忘记写getter setter 、无参和有参构造方法
(2)忘记
@Component @ConfigurationProperties(prefix = "auth")
2、yml配置文件与实体类不对应,或映射的key不对
3、测试类
忘记 @Autowired
1、实体类
(1)忘记写getter setter 、无参和有参构造方法
(2)忘记
@Component @ConfigurationProperties(prefix = "auth")
2、yml配置文件与实体类不对应,或映射的key不对
3、测试类
忘记 @Autowired