Skip to content

Commit

Permalink
* GlobalConfig 兼容3.4.2 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
fjn committed Mar 9, 2021
1 parent 6f398f0 commit 889d4cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@
<mybatis_jdk8.version>3.5.1</mybatis_jdk8.version>
<mybatis.spring.version>1.3.2</mybatis.spring.version>
<mybatis.springboot.version>1.3.5</mybatis.springboot.version>
<mybatis.plus_3x.version>3.1.2</mybatis.plus_3x.version>

<!--
<mybatis.plus_3x.version>3.1.2</mybatis.plus_3x.version>
<mybatis.plus_3x.version>3.2.0</mybatis.plus_3x.version>
<mybatis.plus_3x.version>3.4.1</mybatis.plus_3x.version>
<mybatis.plus_3x.version>3.4.2</mybatis.plus_3x.version>
-->
<mybatis.plus_3x.version>3.4.2</mybatis.plus_3x.version>

<mybatis.plus_2x.version>2.3.3</mybatis.plus_2x.version>
<junit.version>4.13.1</junit.version>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public MybatisPlusProperties cloneMybatisPlusProperties(@NonNull MybatisPlusProp
globalConfig.setSqlInjector(gc.getSqlInjector());
globalConfig.setSuperMapperClass(gc.getSuperMapperClass());
globalConfig.setWorkerId(gc.getWorkerId());
globalConfig.setSqlParserCache(gc.isSqlParserCache());
// mybatis-plus高版本移除了 setSqlParserCache(), isSqlParserCache()
// globalConfig.setSqlParserCache(gc.isSqlParserCache());

props.setGlobalConfig(globalConfig);
}
Expand Down

0 comments on commit 889d4cb

Please sign in to comment.