写了一个http服务,get正常,Post如果含有参数,将抛异常:HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: Invalid token character ',' in token "json, application/json"。
相关代码:
public class HelloApi {
@RequestMapping(value = "/boy", method = RequestMethod.POST, produces = "application/json;charset=utf-8")
@ResponseBody
public String boy(HttpServletRequest request, HttpServletResponse response) {return "123";)
Post异常500 Invalid token character ',' in token "json, application/json"
写了一个http服务,get正常,Post如果含有参数,将抛异常:HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: Invalid token character ',' in token "json, application/json"。 相关代码: public class HelloApi { @RequestMapping(value =