api请求报错信息:
控制台报错信息:
Servlet.service() for servlet [dispatcherServlet] in context with path [/financial-data] indi.grant.financial.data.exception.RestException: null
通常的处理:
1.Service层实现类未添加注解@Autowired
2.@RestController使用成了@Controller,或者没有@ResponseBody
这里的原因:
异常统一处理没有修改包的名称,导致统一处理没有生效抛出到了控制台
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/tech/java/272073.html