diff --git a/README.md b/README.md index fe76a736e..480151040 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,16 @@ ``` -### 暂时会以快照版本的方式迭代,等后续稳定之后发行3.5.0正式版本.(2021年2月1日) - -#### 3.5.0版本不兼容项 - -| 类 | 方法 | 修改说明 | -| --------------- | ---------------- | --------------------------------------------------------- | -| FileOutConfig | outputFile | 方法返回值修改为File,自定义类直接new File(xxxxx)返回即可. | -| InjectionConfig | prepareObjectMap | 方法返回值修改为void | - - +### 使用(存在对历史版本的不兼容) +```java +new SimpleAutoGenerator() { + @Override + public IConfigBuilder dataSourceConfigBuilder() { + return new DataSourceConfig.Builder("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;CASE_INSENSITIVE_IDENTIFIERS=TRUE", + "sa", ""); + } +}.execute(); +``` #### 数据库配置(DataSourceConfig) diff --git a/build.gradle b/build.gradle index b7ea554e2..e8a147059 100644 --- a/build.gradle +++ b/build.gradle @@ -58,7 +58,7 @@ ext { allprojects { group = 'com.baomidou' - version = "3.5.0.1-SNAPSHOT" + version = "3.5.0" } description = "Mybatis 增强工具包 - 只做增强不做改变,简化CRUD操作"