优化zlt-db-spring-boot-starter自动装配MybatisPlus配置,去掉DefaultMybatisPlusConfig类
This commit is contained in:
-13
@@ -1,13 +0,0 @@
|
||||
package com.sharding.demo.config;
|
||||
|
||||
import com.central.db.config.DefaultMybatisPlusConfig;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
*/
|
||||
@Configuration
|
||||
@MapperScan({"com.sharding.demo.mapper*"})
|
||||
public class MybatisPlusConfig extends DefaultMybatisPlusConfig {
|
||||
}
|
||||
@@ -2,10 +2,12 @@ package com.sharding.demo.mapper;
|
||||
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.sharding.demo.model.User;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
*/
|
||||
@Mapper
|
||||
public interface UserMapper extends SuperMapper<User> {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user