diff --git a/dynamic-datasource-creator/src/main/java/com/baomidou/dynamic/datasource/enums/XADataSourceEnum.java b/dynamic-datasource-creator/src/main/java/com/baomidou/dynamic/datasource/enums/XADataSourceEnum.java index 7b7ff730..92c3b2fd 100644 --- a/dynamic-datasource-creator/src/main/java/com/baomidou/dynamic/datasource/enums/XADataSourceEnum.java +++ b/dynamic-datasource-creator/src/main/java/com/baomidou/dynamic/datasource/enums/XADataSourceEnum.java @@ -24,6 +24,10 @@ */ @Getter public enum XADataSourceEnum { + /** + * MySQL Connector/J 5.1 使用老的 MysqlXADataSource + */ + MYSQL_CONNECTOR_J_5("com.mysql.jdbc.jdbc2.optional.MysqlXADataSource"), /** * mysql */ @@ -69,4 +73,4 @@ public static boolean contains(String xaDataSourceClassName) { } return false; } -} \ No newline at end of file +}