@RequestMapping(value = "/post/{postThreadId}", method = RequestMethod.GET)
@ResponseBody
public String paramTest(PostParams params) {
return params.toString();
}
Spring MVC Path Variable ("postThreadID") can be mapped to Command object field?
PostParams have setPostThreadId(int ...)
But, it looks not working.
I don’t think this is possible.
Set it manually: