Skip to content

@PathVariable will cut off the last point [SPR-14678] #19242

@spring-projects-issues

Description

@spring-projects-issues

mashuai opened SPR-14678 and commented

When use @PathVariable like

@RequestMapping(value = "/test/{test}", method = RequestMethod.GET)
   @ResponseBody
   public String test(@PathVariable("test") String test, HttpServletResponse response) throws IOException {
       System.out.println(test);
       return test;
   }

if let the test like 1.0.0.0.1 the test wil be 1.0.0.0 not expect


Affects: 4.2.5

Attachments:

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions