Skip to content

Commit e2281fe

Browse files
authored
Java: 解决依赖 APIJSON 4.7.2 + 时对接不上连接池
1 parent 9b0b993 commit e2281fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

APIJSON-Java-Server/APIJSONDemo-Druid/src/main/java/apijson/demo/DemoSQLExecutor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class DemoSQLExecutor extends APIJSONSQLExecutor {
3434
public Connection getConnection(SQLConfig config) throws Exception {
3535
// Log.d(TAG, "getConnection config.getDatasource() = " + config.getDatasource());
3636

37-
String key = config.getDatabase() + "-" + config.getDatasource();
37+
String key = config.getDatasource() + "-" + config.getDatabase();
3838
Connection c = connectionMap.get(key);
3939
if (c == null || c.isClosed()) {
4040
try {

0 commit comments

Comments
 (0)