package com.zy.common.config; /** * @author pang.jiabao * @description MyBaits plus sql拦截器配置 * @createDate 2024/10/25 16:18 */ import org.mybatis.spring.annotation.MapperScan; import org.springframework.context.annotation.Bean; //@Configuration @MapperScan("src.resources.mapper") // 替换为你的Mapper包路径 public class MyBatisPlusConfig { @Bean public SlowSqlInterceptor slowSqlInterceptor() { return new SlowSqlInterceptor(); } }