Skip to content

Commit eb348b5

Browse files
XiaotianZhajzheaux
authored andcommitted
Update RestConfig.java
OAuth2ResourceServerConfigurer#jwt() deprecated since 6.1 Signed-off-by: XiaotianZha <bad58n81so@126.com>
1 parent 0c8686d commit eb348b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servlet/spring-boot/java/jwt/login/src/main/java/example/RestConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
6666
)
6767
.csrf((csrf) -> csrf.ignoringRequestMatchers("/token"))
6868
.httpBasic(Customizer.withDefaults())
69-
.oauth2ResourceServer((jwt) -> jwt.jwt(Customizer.withDefaults()))
69+
.oauth2ResourceServer((oauth2) -> oauth2.jwt(Customizer.withDefaults()))
7070
.sessionManagement((session) -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
7171
.exceptionHandling((exceptions) -> exceptions
7272
.authenticationEntryPoint(new BearerTokenAuthenticationEntryPoint())

0 commit comments

Comments
 (0)