image.png

    1. package com.wzy.serviceedu.config;
    2. import org.mybatis.spring.annotation.MapperScan;
    3. import org.springframework.context.annotation.Configuration;
    4. @Configuration//文件配置类
    5. @MapperScan(value = "com.wzy.serviceedu.mapper")//扫描mapper接口
    6. public class EduConfig {
    7. }