MVC路径无匹配或请求api版本过低时处理
摘要:解决方案:RequestMappingHandlerMapping中重写handleNoMatch方法,springMVC和springboot中配置无区别。 另: 1、可搭配advice处理抛出的异常; 2、可在HttpServletRequest中通过setAttribute、getAttrib
阅读全文
posted @ 2018-07-31 12:51
posted @ 2018-07-31 12:51
posted @ 2018-07-28 18:02
posted @ 2018-07-28 15:04
posted @ 2018-07-28 13:12