org.springframework.security:spring-security-config breaking changes
Updated December 4, 2026
On this page
Latest version 7.2.0. Source repository
Packages on Maven Central run on Java. Java end of life dates.
org.springframework.security:spring-security-config 7.0.0 breaking changes
- Removed
org.springframework.security.config.annotation.ObjectPostProcessor
org.springframework.security.config.annotation.ObjectPostProcessor was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.SecurityConfigurerAdapter.and
SecurityConfigurerAdapter.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry.createMvcMatchers
AbstractRequestMatcherRegistry.createMvcMatchers was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.AuthorizeHttpRequestsDsl.getShouldFilterAllDispatcherTypes
AuthorizeHttpRequestsDsl.getShouldFilterAllDispatcherTypes was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.AuthorizeHttpRequestsDsl.setShouldFilterAllDispatcherTypes
AuthorizeHttpRequestsDsl.setShouldFilterAllDispatcherTypes was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.AuthorizeRequestsDsl
org.springframework.security.config.annotation.web.AuthorizeRequestsDsl was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.builders.HttpSecurity.authorizeRequests
HttpSecurity.authorizeRequests was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.builders.HttpSecurity.RequestMatcherConfigurer.and
org.springframework.security.config.annotation.web.builders.HttpSecurity.RequestMatcherConfigurer.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.AbstractConfigAttributeRequestMatcherRegistry.createMvcMatchers
AbstractConfigAttributeRequestMatcherRegistry.createMvcMatchers was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer.and
AbstractHttpConfigurer.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.AbstractInterceptUrlConfigurer
org.springframework.security.config.annotation.web.configurers.AbstractInterceptUrlConfigurer was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry.and
org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry.and was removed in... central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer.ChannelRequestMatcherRegistry.and
org.springframework.security.config.annotation.web.configurers.ChannelSecurityConfigurer.ChannelRequestMatcherRegistry.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer
org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CacheControlConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CacheControlConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentSecurityPolicyConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentSecurityPolicyConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentTypeOptionsConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentTypeOptionsConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginEmbedderPolicyConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginEmbedderPolicyConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginOpenerPolicyConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginOpenerPolicyConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginResourcePolicyConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginResourcePolicyConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.FrameOptionsConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.FrameOptionsConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.HstsConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.HstsConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.PermissionsPolicyConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.PermissionsPolicyConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ReferrerPolicyConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ReferrerPolicyConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.XXssConfig.and
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.XXssConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer.and
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer.and was removed in... central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.AuthorizationEndpointConfig.and
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.AuthorizationEndpointConfig.and was removed in org.springframework.security:spring-security-config... central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.RedirectionEndpointConfig.and
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.RedirectionEndpointConfig.and was removed in org.springframework.security:spring-security-config... central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.TokenEndpointConfig.and
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.TokenEndpointConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.UserInfoEndpointConfig.and
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.UserInfoEndpointConfig.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.JwtConfigurer.and
org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.JwtConfigurer.and was removed in... central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.LogoutRequestConfigurer.and
org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.LogoutRequestConfigurer.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.LogoutResponseConfigurer.and
org.springframework.security.config.annotation.web.configurers.saml2.Saml2LogoutConfigurer.LogoutResponseConfigurer.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer.ConcurrencyControlConfigurer.and
org.springframework.security.config.annotation.web.configurers.SessionManagementConfigurer.ConcurrencyControlConfigurer.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.configurers.UrlAuthorizationConfigurer
org.springframework.security.config.annotation.web.configurers.UrlAuthorizationConfigurer was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.HttpSecurityDsl.authorizeRequests
HttpSecurityDsl.authorizeRequests was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.messaging.MessageSecurityMetadataSourceRegistry
org.springframework.security.config.annotation.web.messaging.MessageSecurityMetadataSourceRegistry was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.RequestMatcherFactory
org.springframework.security.config.annotation.web.RequestMatcherFactory was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.BeanIds.EMBEDDED_APACHE_DS
org.springframework.security.config.BeanIds.EMBEDDED_APACHE_DS was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.http.MatcherType.ant
MatcherType.ant was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.http.MatcherType.mvc
MatcherType.mvc was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.http.MessageMatcherFactoryBean.setPathMatcher
MessageMatcherFactoryBean.setPathMatcher was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.web.server.ServerHttpSecurity.AnonymousSpec.and
org.springframework.security.config.web.server.ServerHttpSecurity.AnonymousSpec.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec.and
org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.web.server.ServerHttpSecurity.CorsSpec.and
org.springframework.security.config.web.server.ServerHttpSecurity.CorsSpec.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.web.server.ServerHttpSecurity.CsrfSpec.and
org.springframework.security.config.web.server.ServerHttpSecurity.CsrfSpec.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec.and
org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.web.server.ServerHttpSecurity.FormLoginSpec.and
org.springframework.security.config.web.server.ServerHttpSecurity.FormLoginSpec.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.and
org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com - Removed
org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.ContentSecurityPolicySpec.and
org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.ContentSecurityPolicySpec.and was removed in org.springframework.security:spring-security-config 7.0.0 central.sonatype.com
And 128 more in this version. Sign up to see every change
org.springframework.security:spring-security-config 7.0.0-RC2 breaking changes
- Renamed
EnableGlobalMultiFactorAuthentication
EnableGlobalMultiFactorAuthentication is renamed to EnableMultiFactorAuthentication. github.com
org.springframework.security:spring-security-config 7.0.0-RC1 breaking changes
- Removed
OidcReactiveOAuth2UserService.setOidcUserMapper
setOidcUserMapper() is removed from OidcReactiveOAuth2UserService. github.com - Removed
OidcUserService.setAccessibleScopes
setAccessibleScopes() is removed from OidcUserService. github.com - Removed
OidcUserService.setOidcUserMapper
setOidcUserMapper() is removed from OidcUserService and OidcReactiveOAuth2UserService. github.com - Behavior changed
OidcUserService.setRetrieveUserInfo
setRetrieveUserInfo() now behaves the same in OidcUserService and OidcReactiveOAuth2UserService, which can change user info loading. github.com - Default changed
PKCE
PKCE is enabled by default, so clients that do not support it may fail. github.com
org.springframework.security:spring-security-config 7.0.0-M3 breaking changes
- Removed
PortResolver
PortResolver is removed in 7.0.0-M3. Code that uses it must stop referencing it. github.com - Behavior changed
Expression Templates are enabled by default in 7.0.0-M3, which changes how expressions are evaluated. github.com
org.springframework.security:spring-security-config 7.0.0-M2 breaking changes
- Removed
Support for OpenSAML 4 is removed; OpenSAML 5 is required. github.com
org.springframework.security:spring-security-config 7.0.0-M1 breaking changes
- Removed
ApacheDS
ApacheDS support is removed. github.com - Removed
AssertingPartyDetails
AssertingPartyDetails is removed from APIs in favor of AssertingPartyMetadata. github.com - Removed
authorizeRequests
The authorizeRequests method is removed; use authorizeHttpRequests instead. github.com - Removed
DistinguishedName
Use LdapName instead of DistinguishedName. github.com - Removed
HandlerMappingIntrospector
Usage of HandlerMappingIntrospector is removed. github.com - Removed
LazyCsrfTokenRepository
The LazyCsrfTokenRepository class is removed. github.com - Removed
Nimbus(Reactive)OpaqueTokenIntrospector
The Nimbus(Reactive)OpaqueTokenIntrospector classes are removed; use SpringReactiveOpaqueTokenIntrospector for the reactive case. github.com - Removed
org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry.shouldFilterAllDispatc...
The shouldFilterAllDispatcherTypes option is removed. central.sonatype.com - Removed
org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity
The EnableWebMvcSecurity annotation is removed. central.sonatype.com - Removed
org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer
The AbstractSecurityWebSocketMessageBrokerConfigurer class is removed. central.sonatype.com
And 10 more in this version. Sign up to see every change
Older versions
7 older versions, each with its first changes. Sign up to see every change
Show 7 older versions
org.springframework.security:spring-security-config 6.0.0 breaking changes
- Removed
org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry.antMatchers
AbstractRequestMatcherRegistry.antMatchers was removed in org.springframework.security:spring-security-config 6.0.0 central.sonatype.com - Removed
org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry.mvcMatchers
AbstractRequestMatcherRegistry.mvcMatchers was removed in org.springframework.security:spring-security-config 6.0.0 central.sonatype.com
And 195 more in this version.
org.springframework.security:spring-security-config 6.0.0-RC1 breaking changes
- Removed
Support for OpenSAML 3 has been removed. github.com - Removed
The deprecated RequestMatcher methods in Java configuration are removed. github.com
And 19 more in this version.
org.springframework.security:spring-security-config 6.0.0-M7 breaking changes
- Removed
Encryptors.querableText
The unsafe deprecated querableText method was removed. github.com - Removed
FilterSecurityInterceptor
FilterSecurityInterceptor is no longer applied by WebSecurity. github.com
And 3 more in this version.
org.springframework.security:spring-security-config 6.0.0-M6 breaking changes
- Removed
AbstractOAuth2AuthorizationGrantRequest
Deprecated members of this class were removed. github.com - Removed
allowMultipleAuthorizationRequests
The deprecated option was removed; code using it will no longer compile. github.com
And 21 more in this version.
org.springframework.security:spring-security-config 6.0.0-M4 breaking changes
- Behavior changed
AbstractRequestMatcherRegistry.shouldFilterAllDispatchTypes
Authorization is checked on every dispatch type, and shouldFilterAllDispatchTypes now defaults to true. github.com - Behavior changed
RequestRejectedException
Rejected requests now return HTTP 400 by default instead of the previous status. github.com
And 1 more in this version.
org.springframework.security:spring-security-config 6.0.0-M2 breaking changes
- Behavior changed
ClientAuthenticationMethod.equals
equals and hashCode of ClientAuthenticationMethod now behave consistently, which can change results when comparing or hashing these values. github.com
org.springframework.security:spring-security-config 6.0.0-M1 breaking changes
- Renamed
org.springframework.security.config.web.servlet.HttpSecurityDsl
HttpSecurityDsl and related files moved to another package, so imports referencing the old location must be updated. central.sonatype.com
Related packages
- org.springframework.security:spring-security-core
- org.springframework.security:spring-security-data
- org.springframework.security:spring-security-test
- org.springframework.security:spring-security-web
- org.springframework.security:spring-security-taglibs
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.