有时候调用不填加@ResponseBody 的Get请求接口可以运行,正常返回;
有时候不填加@ResponseBody注解,服务端代码全部运行,但是返回如下信息:
{
"timestamp": "2019-07-11T07:58:16.385+0000",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/certificate/findAllByParamsPm"
}
添加@ResponseBody注解后正常返回,请问是怎么回事?