oauth jwt认证集成问题集合

Field authenticationManager in com.spring.cloud.authentic.config.JwtAuthorizationConfig required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found.

没有AuthenticationManager 这个bean 无法注入

在securityconfig类中注入

@Bean
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}

Failed to instantiate [org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter]: Factory method 'jwtAccessTokenConverter' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this String argument must have text; it must not be null, empty, or blank


 [Assertion failed] - this String argument must have text; it must not be null, empty, or blank

检查数据库连接。一般都是数据库连接不上

 

 

 

你可能感兴趣的:(oauth jwt认证集成问题集合)