![]() |
What is the meaning of {id:.+} in a Spring MVC requestmapping handler method? - Printable Version +- 0Day Forums (https://0day.red) +-- Forum: Coding (https://0day.red/Forum-Coding) +--- Forum: FrameWork (https://0day.red/Forum-FrameWork) +---- Forum: Spring (https://0day.red/Forum-Spring) +---- Thread: What is the meaning of {id:.+} in a Spring MVC requestmapping handler method? (/Thread-What-is-the-meaning-of-id-in-a-Spring-MVC-requestmapping-handler-method) |
What is the meaning of {id:.+} in a Spring MVC requestmapping handler method? - ascocarp400 - 08-02-2023 I came across a method in the controller. What is this id:.+ ?? @RequestMapping(value="/index/{endpoint}/{type}/{id:.+}", method=RequestMethod.POST, consumes=kContentType, produces=kProducesType) @ResponseBody public String indexData(@PathVariable(value="endpoint") String endpoint, @PathVariable(value="type") String type, @PathVariable(value="id") String id, @RequestBody String body, HttpServletRequest request) { logger.debug("In web controller for endpoint " + endpoint); return indexController.indexData(endpoint, type, id, body, getSecurityContextProvider(request)); } |