-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Simple URL Mapping not working with PathPatternParser when Servlet context path is used #26411
Milestone
Comments
This was referenced Mar 7, 2021
Merged
This was referenced Mar 14, 2021
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affects: 5.3.3
when I use
matching-strategy=path_pattern_parser
instead ofmatching-strategy=ant_path_matcher
my application is not able to resolve resources anymore.I created this sample project here https://github.com/BigMichi1/spring-web-resource where you can see how the resource mapping is added: https://github.com/BigMichi1/spring-web-resource/blob/main/src/main/java/com/example/demo/CustomConfig.java
this works quite well until the
path_patter_parser
is used.as one observation I had, was that when I remove
server.servlet.context-path=/hello
both strategies are working, but when setting the context path only the ant path matcher worksThe text was updated successfully, but these errors were encountered: