Skip to content

Avoid late registration of PathPatternParser on DelegatingHandlerMapping #1965

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

Closed
odrotbohm opened this issue Jan 25, 2021 · 0 comments
Closed
Assignees

Comments

@odrotbohm
Copy link
Member

That seems to cause issues spring-projects/spring-framework#26427.

@odrotbohm odrotbohm added this to the 3.5 M3 (2021.0.0) milestone Jan 25, 2021
@odrotbohm odrotbohm self-assigned this Jan 25, 2021
odrotbohm added a commit that referenced this issue Jan 26, 2021
…ing.

Instead of registering the PathPatternParser on DelegatingHandlerMapping via WebMvcConfigurer.configurePathMatch(…) we now consume the bean exposed in context of the fix for spring-projects/spring-framework#26427.

We also use the newly introduced RequestMappingInfo.mutate() to add our customizations of the produces clause for Spring Data REST's mappings.

Fixes GH-1965.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant