Spring boot 2.0.0.M6 OAuth2 web application client. No @EnableOauth2Sso anymore; how to replace?

后端 未结 3 1507
有刺的猬
有刺的猬 2021-02-07 12:28

I have build a Authentication Service and Webapplication in Spring 5 and Spring boot 2.0.0.M3 and I am trying to port it to Spring boot 2.0.0.M6 now.

I not

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-07 13:20

    The existing GitHub issue on spring boot, has been elaborated on, and I was eventually led to the annotation's location in the 2.0.0 release. It has been moved to a project completely new to the 2.0.0 release artifacts.

    To resolve this issue and migrate your project, add the artifact org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure to your dependency management configuration:

    
      org.springframework.security.oauth.boot
      spring-security-oauth2-autoconfigure
      2.0.0.RELEASE
    
    

提交回复
热议问题