package com.macro.mall.demo.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatis相关配置
 * Created by macro on 2019/4/8.
 */
@Configuration
@MapperScan("com.macro.mall.mapper")
public class MyBatisConfig {
}

package com.macro.mall.demo.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatis相关配置
 * Created by macro on 2018/4/26.
 */
@Configuration
@MapperScan("com.macro.mall.mapper")
public class MyBatisConfig {
}

Update MyBatisConfig.java