use of com.baomidou.mybatisplus.extension.plugins.SqlExplainInterceptor in project tutorials-java by Artister.
the class MybatisPlusConfig method sqlExplainInterceptor.
@Bean
public SqlExplainInterceptor sqlExplainInterceptor() {
SqlExplainInterceptor sqlExplainInterceptor = new SqlExplainInterceptor();
List<ISqlParser> sqlParserList = new ArrayList<>();
sqlParserList.add(new BlockAttackSqlParser());
sqlExplainInterceptor.setSqlParserList(sqlParserList);
return sqlExplainInterceptor;
}
Aggregations