摘要:
1. MP配置类 1.1 分页功能 @Configuration public class MybatisPlusConfig { @Bean public MybatisPlusInterceptor mybatisPlusInterceptor(){ MybatisPlusInterceptor 阅读全文
posted @ 2022-08-18 15:04
别停
阅读(132)
评论(0)
推荐(0)
摘要:
1.为什么要使用全局异常处理器?     为了避免在项目中频繁使用try cathch来捕获异常,我们可用通过一个全局异常处理进行捕获异常和自定义异常。Validator校验器抛出的异常,try catch也无法捕获,所以也需要用到全局异常处理器。 2.实现 2.1 阅读全文
posted @ 2022-08-18 10:56
别停
阅读(64)
评论(0)
推荐(0)
浙公网安备 33010602011771号