Кроме того, в Spring Security 6.0, Antmatchers () , а также другие методы конфигурации для защиты запросов (а именно MVCmatchers () и regexmatchers () ) были удалены из API.
Попытка настроить конфигурацию JWT. Похоже, что JWT устарел. Как я могу использовать oauth2resourceserverconfigurer :: jwt сейчас?[code]@Bean SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http.authorizeHttpRequests((requests) -> requests.anyRequest().authenticated()); http.sessionManagement((session) -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)); //http.formLogin(withDefaults()); http.httpBasic(Customizer.withDefaults()); http.csrf(csrf -> csrf.disable()); http.headers(headers -> headers.frameOptions(frameOptionsConfig -> frameOptionsConfig.sameOrigin())); http.oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt); return http.build(); } [/code] Кроме того, в Spring Security 6.0, Antmatchers () , а также другие методы конфигурации для защиты запросов (а именно MVCmatchers () и regexmatchers () ) были удалены из API.