Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify documentation on Spring Web MVC pattern comparison #31294

Closed
mrnst opened this issue Sep 22, 2023 · 1 comment
Closed

Clarify documentation on Spring Web MVC pattern comparison #31294

mrnst opened this issue Sep 22, 2023 · 1 comment
Assignees
Labels
type: documentation A documentation task
Milestone

Comments

@mrnst
Copy link

mrnst commented Sep 22, 2023

Affects: 6.0.12


The current documentation on Spring Web MVC pattern comparison says:

Both help to sort patterns with more specific ones on top. A pattern is less specific if it has a lower count of URI variables (counted as 1), single wildcards (counted as 1), and double wildcards (counted as 2). Given an equal score, the longer pattern is chosen. Given the same score and length, the pattern with more URI variables than wildcards is chosen.

I would consider a pattern more specific (and therefore winning) if it has a lower count of URI variables etc.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Sep 22, 2023
@bclozel bclozel self-assigned this Sep 22, 2023
@bclozel bclozel added type: documentation A documentation task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Sep 22, 2023
@bclozel bclozel added this to the 6.0.13 milestone Sep 22, 2023
@bclozel
Copy link
Member

bclozel commented Sep 22, 2023

Thanks for the heads up @mrnst , this typo has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

3 participants