mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-12-12 20:29:27 +08:00
⚡ mp增加逻辑删除配置
This commit is contained in:
parent
946fcbfadc
commit
ef0434fdcd
@ -16,11 +16,12 @@
|
|||||||
package org.springblade.core.boot.config;
|
package org.springblade.core.boot.config;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
||||||
|
import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
|
import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
|
||||||
import org.mybatis.spring.annotation.MapperScan;
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
import org.springblade.core.mp.BladeMetaObjectHandler;
|
|
||||||
import org.springblade.core.launch.constant.AppConstant;
|
import org.springblade.core.launch.constant.AppConstant;
|
||||||
|
import org.springblade.core.mp.BladeMetaObjectHandler;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.Profile;
|
import org.springframework.context.annotation.Profile;
|
||||||
@ -44,6 +45,11 @@ public class MybatisPlusConfiguration {
|
|||||||
return new BladeMetaObjectHandler();
|
return new BladeMetaObjectHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public LogicSqlInjector logicSqlInjector() {
|
||||||
|
return new LogicSqlInjector();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SQL执行效率插件
|
* SQL执行效率插件
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user