@RequestMapping, If no method, places any request form RequestMethod.GET, RequestMethod.POST, RequestMethod.PUT, RequestMethod.DELETE so obtained can access

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

Generally designated specific method, convenient debugging swagger-ui.html.

Guess you like

Origin www.cnblogs.com/cag2050/p/12401367.html