Skip to content

Commit bf339c3

Browse files
authored
Sonar: HandlerMappingIntrospector is deprecated (#32064)
1 parent 5a89dcd commit bf339c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generators/spring-boot/generators/jwt/templates/src/test/java/_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import org.springframework.security.oauth2.jwt.JwtClaimsSet;
2020
import org.springframework.security.oauth2.jwt.JwtEncoder;
2121
import org.springframework.security.oauth2.jwt.JwtEncoderParameters;
2222
import org.springframework.security.oauth2.jwt.NimbusJwtEncoder;
23-
<%_ if (!reactive) { _%>
23+
<%_ if (!reactive && !springBoot4) { _%>
2424
import org.springframework.web.servlet.handler.HandlerMappingIntrospector;
2525
<%_ } _%>
2626

@@ -29,11 +29,13 @@ public class JwtAuthenticationTestUtils {
2929
3030
public static final String BEARER = "Bearer ";
3131
32+
<%_ if (!springBoot4) { _%>
3233
@Bean
3334
private HandlerMappingIntrospector mvcHandlerMappingIntrospector() {
3435
return new HandlerMappingIntrospector();
3536
}
3637
<%_ } _%>
38+
<%_ } _%>
3739
<%_ if (applicationTypeMicroservice && !reactive) { _%>
3840
3941
@Bean

0 commit comments

Comments
 (0)