Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0136080

Browse files
升级 APIJSON, apijson-framework, 自身的版本为 4.7.0,升级 apijson-column 版本为 1.1.0
1 parent 80f0aa9 commit 0136080

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed
-6.8 KB
Binary file not shown.
6.8 KB
Binary file not shown.
65.2 KB
Binary file not shown.
-288 KB
Binary file not shown.
293 KB
Binary file not shown.

‎APIJSON-Java-Server/APIJSONBoot/pom.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>apijson.boot</groupId>
77
<artifactId>apijson-boot</artifactId>
8-
<version>4.6.7</version>
8+
<version>4.7.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONBoot</name>
@@ -53,21 +53,21 @@
5353

5454

5555
<!-- 可使用 libs 目录的 apijson-orm.jar, apijson-framework.jar, apijson-column.jar 来替代,两种方式二选一 <<<<<<<<<< -->
56-
<dependency>
56+
<!-- <dependency>
5757
<groupId>com.github.Tencent</groupId>
5858
<artifactId>APIJSON</artifactId>
5959
<version>4.6.7</version>
6060
</dependency>
61-
<dependency>
61+
<dependency>
6262
<groupId>com.github.APIJSON</groupId>
6363
<artifactId>apijson-framework</artifactId>
6464
<version>4.6.7</version>
65-
</dependency>
66-
<dependency>
65+
</dependency>-->
66+
<!-- <dependency>
6767
<groupId>com.github.APIJSON</groupId>
6868
<artifactId>apijson-column</artifactId>
6969
<version>1.0.1</version>
70-
</dependency>
70+
</dependency>-->
7171
<!-- 可使用 libs 目录的 apijson-orm.jar, apijson-framework.jar, apijson-column.jar 来替代,两种方式二选一 >>>>>>>>>> -->
7272

7373
<!-- 需要用的数据库 JDBC 驱动 -->

‎APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/demo/DemoSQLExecutor.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,17 @@ public class DemoSQLExecutor extends APIJSONSQLExecutor {
5252

5353
// 适配连接池,如果这里能拿到连接池的有效 Connection,则 SQLConfig 不需要配置 dbVersion, dbUri, dbAccount, dbPassword
5454
@Override
55-
public Connection getConnection(SQLConfig config) throws Exception {
55+
public Connection getConnection(SQLConfig config) throws Exception {
56+
Log.d(TAG, "getConnection config.getDatasource() = " + config.getDatasource());
57+
5658
Connection c = connectionMap.get(config.getDatabase());
5759
if (c == null || c.isClosed()) {
5860
try {
5961
DataSource ds = DemoApplication.getApplicationContext().getBean(DataSource.class);
6062
// 另一种方式是 DruidConfig 初始化获取到 Datasource 后给静态变量 DATA_SOURCE 赋值: ds = DruidConfig.DATA_SOURCE.getConnection();
6163
connectionMap.put(config.getDatabase(), ds == null ? null : ds.getConnection());
6264
} catch (Exception e) {
63-
Log.e(TAG, "DemoSQLExecutor.getConnection try { "
65+
Log.e(TAG, "getConnection try { "
6466
+ "DataSource ds = DemoApplication.getApplicationContext().getBean(DataSource.class); .."
6567
+ "} catch (Exception e) = " + e.getMessage());
6668
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /