| | |
| | | import org.dromara.common.core.factory.YmlPropertySourceFactory; |
| | | import org.dromara.common.core.utils.SpringUtils; |
| | | import org.dromara.common.mybatis.handler.InjectionMetaObjectHandler; |
| | | import org.dromara.common.mybatis.handler.MybatisExceptionHandler; |
| | | import org.dromara.common.mybatis.interceptor.PlusDataPermissionInterceptor; |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.beans.BeansException; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 异常处理器 |
| | | */ |
| | | @Bean |
| | | public MybatisExceptionHandler mybatisExceptionHandler() { |
| | | return new MybatisExceptionHandler(); |
| | | } |
| | | |
| | | /** |
| | | * PaginationInnerInterceptor 分页插件,自动识别数据库类型 |
| | | * https://baomidou.com/pages/97710a/ |
| | | * OptimisticLockerInnerInterceptor 乐观锁插件 |