Java Code Examples for com.baomidou.mybatisplus.mapper.LogicSqlInjector

The following examples show how to use com.baomidou.mybatisplus.mapper.LogicSqlInjector. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: RCT   Source File: MybatisPlusConfig.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * 注入sql注入器
 */
@Bean
public ISqlInjector sqlInjector() {
	return new LogicSqlInjector();
}
 
Example 2
Source Project: unimall   Source File: MybatisPlusConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public GlobalConfiguration globalConfiguration() {
    GlobalConfiguration conf = new GlobalConfiguration(new LogicSqlInjector());
    conf.setIdType(IdType.AUTO.getKey());
    return conf;
}
 
Example 3
Source Project: easyweb-shiro   Source File: MybatisPlusConfig.java    License: MIT License 4 votes vote down vote up
/**
 * 注入sql注入器
 */
@Bean
public ISqlInjector sqlInjector() {
    return new LogicSqlInjector();
}