io.github.dengchen2020.mybatis.annotation.EnableMybatisRepositories Maven / Gradle / Ivy
package io.github.dengchen2020.mybatis.annotation;
import com.baomidou.mybatisplus.core.mapper.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import java.lang.annotation.*;
/**
* 启用Mybatis存储库扫描注册
* @author dengchen
* @since 2024/6/22
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@MapperScans({@MapperScan(markerInterface = Mapper.class),@MapperScan(annotationClass = org.apache.ibatis.annotations.Mapper.class)})
public @interface EnableMybatisRepositories {
}