摘要: int i=1/0; 阅读全文
posted @ 2019-07-27 17:39 ThisCall 阅读(431) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/zzzgd_666/article/details/81544098(copy) 详细看此 所以结合上面我们可以知道,使用@ExceptionHandler,可以处理异常, 但是仅限于当前Controller中处理异常, @ControllerAdvice 阅读全文
posted @ 2019-07-27 17:38 ThisCall 阅读(751) 评论(0) 推荐(0)
摘要: 区别 今天在撸SpringBoot的时候,突然对注解产生了混淆,@MapperScan和@ComponentScan都是扫描包,二者之间有什么区别呢? 首先,@ComponentScan是组件扫描注解,用来扫描@Controller @Service @Repository这类,主要就是定义扫描的路 阅读全文
posted @ 2019-07-27 15:30 ThisCall 阅读(2053) 评论(0) 推荐(0)