spring mvc @RequestMapping method 不写的话,默认GET、POST都支持,根据前端方式自动适应

@RequestMapping(value="/")

method 不写的话,默认GET、POST都支持,根据前端方式自动适应。