All Downloads are FREE. Search and download functionalities are using the official Maven repository.

matrix.boot.jdbc.orm.mybatis.properties.MybatisProperties Maven / Gradle / Ivy

package matrix.boot.jdbc.orm.mybatis.properties;

import lombok.Data;
import lombok.experimental.Accessors;
import matrix.boot.jdbc.orm.mybatis.service.DataPermissionService;
import org.apache.ibatis.session.ExecutorType;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;

/**
 * @author wangcheng
 * 2021/8/19
 **/
@ConfigurationProperties(value = "matrix.jdbc.mybatis")
@Data
@Accessors(chain = true)
public class MybatisProperties implements Serializable {

    /**
     * 是否开启
     */
    private boolean enabled = false;

    /**
     * 开启数据权限
     */
    private boolean enabledDataPermission = false;

    /**
     * 数据权限服务类
     */
    private Class dataPermissionService;

    /**
     * 执行器类型(SIMPLE,REUSE,BATCH)
     */
    private ExecutorType executorType;

    /**
     * 实体路径(com.project.demo.entity)
     */
    public String typeAliasesPackage;

    /**
     * xml文件路径
     */
    public String mapperLocations = "classpath*:mapper/**/*Mapper.xml";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy