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

后端 未结 3 1504
有刺的猬
有刺的猬 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:06

    This issue is now tracked in GitHub and is available in 2.0.0 SNAPSHOT and targeted for an RC1 release.

    View issue here: https://github.com/spring-projects/spring-boot/pull/10672

    0 讨论(0)
  • 2021-02-07 13:09

    Looks like the @EnableOauth2Sso annotation has been moved here:

    compile group: 'org.springframework.security.oauth.boot', name: 'spring-security-oauth2-autoconfigure', version: 2.0.0.RELEASE

    0 讨论(0)
  • 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:

    <dependency>
      <groupId>org.springframework.security.oauth.boot</groupId>
      <artifactId>spring-security-oauth2-autoconfigure</artifactId>
      <version>2.0.0.RELEASE</version>
    </dependency>
    
    0 讨论(0)
提交回复
热议问题