- Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Closed
Copy link
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Hi,
I'm developing a Spring MVC app using Spring Boot 2.4.1.
I add the following configurations to application.properties
in order to switch path matching strategy to the new PathPatternParser
:
spring.mvc.pathmatch.matching-strategy=path_pattern_parser
But after that access to the root path (/) won't be redirected to /index.html
. Access the full path http://xxxxx/index.html
is OK. If switching back to AntPathMatcher
, redirect works normally.
PS: I set spring.web.resources.static-locations
to a local directory which contains static resources.
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug