@RequestMapping 同时支持post,get请求写法

@RequestMapping (value =  "/userInfo" , method = {RequestMethod. POST ,RequestMethod. GET })

你可能感兴趣的:(springMvc)