优化zlt-db-spring-boot-starter自动装配MybatisPlus配置,去掉DefaultMybatisPlusConfig类
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
package com.central.file.config;
|
||||
|
||||
import com.central.db.config.DefaultMybatisPlusConfig;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
* @date 2018/12/10
|
||||
*/
|
||||
@Configuration
|
||||
@MapperScan({"com.central.file.mapper*"})
|
||||
public class MybatisPlusConfig extends DefaultMybatisPlusConfig {
|
||||
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
|
||||
import com.central.file.model.FileInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
@@ -14,6 +15,7 @@ import org.apache.ibatis.annotations.Param;
|
||||
*
|
||||
* @author zlt
|
||||
*/
|
||||
@Mapper
|
||||
public interface FileMapper extends SuperMapper<FileInfo> {
|
||||
List<FileInfo> findList(Page<FileInfo> page, @Param("f") Map<String, Object> params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user