我想問下useDeprecatedExecutor=false還需要設置嗎,因為3.4.1的Change log好像沒看到相關的修改
/** ?????*?新的分頁插件,一緩和二緩遵循mybatis的規則,需要設置?MybatisConfiguration#useDeprecatedExecutor?=?false?避免緩存出現問題(該屬性會在舊插件移除后一同移除) ?????*/ ????@Bean ????public?MybatisPlusInterceptor?mybatisPlusInterceptor()?{ ????????MybatisPlusInterceptor?interceptor?=?new?MybatisPlusInterceptor(); ????????interceptor.addInnerInterceptor(new?PaginationInnerInterceptor(DbType.H2)); ????????return?interceptor; ????} ????@Bean ????public?ConfigurationCustomizer?configurationCustomizer()?{ ????????return?configuration?->?configuration.setUseDeprecatedExecutor(false); ????}
按照文檔描述是要等舊插件移除后才會移除該屬性
2021-01-16
你好,我視頻中說的不太精確。3.4.1中為了避免緩存出問題,還是要設置useDeprecatedExecutor=false的,3.4.1還沒有移除該屬性。