Skip to content

Commit f97f8ba

Browse files
authored
feat: 增加 MySQL Connector/J 5.1 XADataSource 的支持 (#627)
1 parent c1f1217 commit f97f8ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dynamic-datasource-creator/src/main/java/com/baomidou/dynamic/datasource/enums/XADataSourceEnum.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
*/
2525
@Getter
2626
public enum XADataSourceEnum {
27+
/**
28+
* <a href="https://dev.mysql.com/doc/connector-j/en/connector-j-api-changes.html">MySQL Connector/J 5.1 使用老的 MysqlXADataSource</a>
29+
*/
30+
MYSQL_CONNECTOR_J_5("com.mysql.jdbc.jdbc2.optional.MysqlXADataSource"),
2731
/**
2832
* mysql
2933
*/
@@ -69,4 +73,4 @@ public static boolean contains(String xaDataSourceClassName) {
6973
}
7074
return false;
7175
}
72-
}
76+
}

0 commit comments

Comments
 (0)