Spring Boot和OAuth2

时间:2019-04-17 11:43:33

标签: java spring-boot spring-security

我经历了以下有关使用Oauth2实现Spring Boot的链接,每个链接都有不同的方法。在第一个应用程序中,他们使用了@ EnableOAuth2Sso批注,在第二个示例中,他们使用了oauth2Login()元素,而没有使用@ EnableOAuth2Sso。

能否请您解释一下这两种方法的主要区别是哪一种?

1)https://spring.io/guides/tutorials/spring-boot-oauth2/ 2)https://www.baeldung.com/spring-security-5-oauth2-login

0 个答案:

没有答案