Not registered via @EnableConfigurationProperties, marked as Spring component, or scanned via @Confi
·
idea当中出现如下报错:
![]()
1.简要解释报错原因:
@ConfigurationProperties 类未被 Spring 管理,需通过组件扫描或显式注册
解决方法:
一.为该类添加 @Component 注解使其成为 Spring Bean

二.在配置类或启动类上添加 @EnableConfigurationProperties(JwtProperties.class)

更多推荐
所有评论(0)