8

When upgrading to spring boot 2.0.0 from an earlier version, it appears that the @EnableOAuth2Sso annotation from the spring-boot-autoconfigure library has been removed. The migration guide and release notes are unclear as to what to use instead, or where it might have moved.

romeara
  • 1,426
  • 1
  • 17
  • 26
  • That makes sense, I apologize for not finding those originally - I will look at them and see if both are still not marked as duplicate and answer there. Thanks for the guidance! – romeara Mar 15 '18 at 01:03

1 Answers1

14

After discussions in an existing GitHub issue on spring boot, 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.

romeara
  • 1,426
  • 1
  • 17
  • 26