Skip to content

Switch to PathPatternParser for Spring MVC breaks welcome page auto configuration #26318

@samotoo

Description

@samotoo

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)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions