@ApiOperation(value = "登录测试")
@RequestMapping(
value = "/loginin",
method = RequestMethod.POST,
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResMessage loginin(@RequestBody Map<String,String> loginMap) {
String userName = (String)loginMap.get("userName");
String password = (String)loginMap.get("password");
return loginService.loginAd(userName,password);
}
post请求,要使用@requestBody
get请求可以使用@RequestParam