0
点赞
收藏
分享

微信扫一扫

nested exception is java.lang.StackOverflowError

德州spark 2022-02-27 阅读 119

以上是访问oauth2的端点报的错,主要是有配置没配置好,修改前配置:


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

修改后配置:


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

    @Override
    protected void configure(AuthenticationManagerBuilder auth) throws Exception {
        auth.jdbcAuthentication()
                .dataSource(dataSource)
                .passwordEncoder(new BCryptPasswordEncoder());
    }

举报

相关推荐

0 条评论