springmvc之@requestMapping详解
参考https://www.oschina.net/translate/using-the-spring-requestmapping-annotation
@RequestParameter,@PathVirable
https://blog.csdn.net/u010412719/article/details/69788227
详解put和fetch
https://www.jianshu.com/p/11f24ad4efdb
给一个方法添加多个访问路径
@RequestMapping(value = {
"",
"/page",
"page*",
"view/*,**/msg"
})
String indexMultipleMapping() {}
@RequestParam用法
@RequestMapping(value = "/id")
String getIdByValue(@RequestParam(name="id",defaultValue = "John", required = false)) String personId) {
System.out.println("ID is " + personId);
return "Get ID from query string of URL with value element";
}
@RequestMapping(method = RequestMethod.GET/POST/DELETE/PUT