Skip to content

Document what is the difference between new requestMatchers and securityMatchers #12950

Closed
@craph

Description

@craph

Expected Behavior

Is it possible to have a more detailled documentation about the difference betwenn new requestMatchers and securityMatchers ?

Current Behavior

After reading this : https://docs.spring.io/spring-security/reference/5.8/migration/servlet/config.html#use-new-security-matchers

there is :

In Spring Security 5.8, the antMatchers, mvcMatchers, and regexMatchers methods were deprecated in favor of new requestMatchers methods.

and

In Spring Security 5.8, the antMatchers, mvcMatchers and requestMatchers methods from HttpSecurity were deprecated in favor of new securityMatchers methods.

It's a little confusing.

Is there any documentation that explains the difference with examples and may be samples with an equivalent with xml configuration to have another view ?

By reading the current documentation, I don't understand when to use securityMatchers

How securityMatchers is different from requestMatchers ?

Context

Thank you very much for your help.
Best regards,

Metadata

Metadata

Assignees

Labels

in: docsAn issue in Documentation or samplesstatus: duplicateA duplicate of another issuetype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions