我正在尝试自动接线从此包io.jsonwebtoken.JwtBuilder中导入的JJWT JwtBuilder,但是我收到如下所示的错误(在问题的结尾)通过在导入的库的开头使用@service注释自动装配自己的类时,我已修复了类似的错误,但是由于这是一个标准库,因此无法向其中添加@service注释我在我的impl文件中这样调用库:import io.jsonwebtoken.JwtBuilder;....@AutowiredJwtBuilder jwtBuilder;gradle中的依赖是compile 'io.jsonwebtoken:jjwt:0.9.0'错误: APPLICATION FAILED TO START***************************Description:Field jwtBuilder in ....CustomerServiceImpl required a bean of type 'io.jsonwebtoken.JwtBuilder' that could not be found.Action:Consider defining a bean of type 'io.jsonwebtoken.JwtBuilder' in your configuration.
添加回答
举报
0/150
提交
取消