1.添加actable依赖
com.gitee.sunchenbin.mybatis.actable
mybatis-enhance-actable
1.1.1.release
2.配置(在此需要注意配置的路径部分需要改成自己项目路径)
com.gitee.sunchenbin.mybatis.actable
mybatis-enhance-actable
1.1.1.release
3.添加配置类
package com.jpxx.clsh.autoconfig;
import com.alibaba.druid.pool.druiddatasource;
import org.mybatis.spring.sqlsessionfactorybean;
import org.springframework.beans.factory.annotation.value;
import org.springframework.beans.factory.config.propertiesfactorybean;
import org.springframework.context.annotation.bean;
import org.springframework.context.annotation.componentscan;
import org.springframework.context.annotation.configuration;
import org.springframework.core.io.support.pathmatchingresourcepatternresolver;
import org.springframework.jdbc.datasource.datasourcetransactionmanager;
/**
* @classname testconfig
* @description
* @author administrator
* @date 2020/11/2 0002 11:30
* @version 1.0
*/
@configuration
@componentscan(basepackages = {"com.gitee.sunchenbin.mybatis.actable.manager.*"})