@Bean @ConditionalOnMissingBean public DispatcherInterceptor mybatisBoostInterceptor(cn.mybatisboost.core.Configuration configuration) { DispatcherInterceptor dispatcherInterceptor = new DispatcherInterceptor(configuration); dispatcherInterceptor.appendPreprocessor(new MybatisCacheRemovingPreprocessor()); dispatcherInterceptor.appendPreprocessor(new ParameterNormalizationPreprocessor()); dispatcherInterceptor.appendPreprocessor(new AutoParameterMappingPreprocessor()); dispatcherInterceptor.appendProvider(new GeneratingSqlProvider()); if (isMapperEnabled) { dispatcherInterceptor.appendProvider(new MapperSqlProvider(configuration)); } if (isLangEnabled) { dispatcherInterceptor.appendProvider(new LanguageSqlProvider(configuration)); } if (isLimiterEnabled) { dispatcherInterceptor.appendProvider(new LimiterSqlProvider(configuration)); } return dispatcherInterceptor; }