Skip to content

ControllerClassNameHandlerMapping's bug [SPR-6153] #10821

@spring-projects-issues

Description

@spring-projects-issues

jia baozhen opened SPR-6153 and commented

there is a bug in this method: org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping.generatePathMappings(Class)

String path = (className.endsWith(CONTROLLER_SUFFIX) ?
className.substring(0, className.indexOf(CONTROLLER_SUFFIX)) : className);

it does not work if the className also starts with "Controller".


Affects: 3.0 M4

Referenced from: commits 74f4749

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