springboot 攔截器過濾權限和錯誤處理

先說異常處理,增長一個異常處理的類MyControllerAdvice就能夠了,不須要其餘地方使用,注意使用註解@ControllerAdviceweb @ControllerAdvice public class MyControllerAdvice { @Resource GetRootPath getRootPath; private static final Log
相關文章
相關標籤/搜索