代码调整
This commit is contained in:
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.DbType;
|
||||
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
|
||||
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
|
||||
import com.njcn.db.handler.AutoFillValueHandler;
|
||||
import com.njcn.db.handler.BatchInjector;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@@ -34,4 +35,17 @@ public class MybatisConfig {
|
||||
return new AutoFillValueHandler();
|
||||
}
|
||||
|
||||
|
||||
/***
|
||||
* 自定义注册器,处理批量插入
|
||||
* @author hongawen
|
||||
* @date 2023/5/30 14:53
|
||||
* @return BatchInjector
|
||||
*/
|
||||
@Bean
|
||||
public BatchInjector sqlInjector() {
|
||||
return new BatchInjector();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user