springMVC项目Controller中Invalid mime type错误

在学习写SpringMVC项目的过程中,在service层里的controller里面有一个函数,需要返回json类型的数据。 于是在@RequestMapping中加入了produces参数,并添加了@ResponseBody注解。如下图所示: 但是服务器启动后,Spring会报错: Invocation of init method failed; nested exception is or
相关文章
相关标签/搜索