Could not autowire field: private org.springframework.security.authentication.AuthenticationManager

前端 未结 4 620
广开言路
广开言路 2021-02-07 01:34

I\'m trying to create OAuth2 Server Provider using this tutorial Spring OAuth2 . The main difference between example and my project - I do not use Spring Boot. I try to split th

4条回答
  •  没有蜡笔的小新
    2021-02-07 02:21

    Solution: Just remove protected void configure(AuthenticationManagerBuilder auth) method. According to javadoc I don't need this method.

提交回复
热议问题