Browse Source

Merge pull request #4119 from mdeinum/gh-4114

* pr/4119:
  Polish
  Add support for the DB2 Universal JDBC driver
pull/4119/merge
Stephane Nicoll 10 years ago
parent
commit
7fd9d58fd6
  1. 10
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DatabaseDriver.java

10
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DatabaseDriver.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -24,6 +24,7 @@ import org.springframework.util.StringUtils; @@ -24,6 +24,7 @@ import org.springframework.util.StringUtils;
*
* @author Phillip Webb
* @author Maciej Walkowiak
* @author Marten Deinum
* @since 1.2.0
*/
enum DatabaseDriver {
@ -87,7 +88,12 @@ enum DatabaseDriver { @@ -87,7 +88,12 @@ enum DatabaseDriver {
* SQL Server.
*/
SQLSERVER("com.microsoft.sqlserver.jdbc.SQLServerDriver",
"com.microsoft.sqlserver.jdbc.SQLServerXADataSource");
"com.microsoft.sqlserver.jdbc.SQLServerXADataSource"),
/**
* DB2 Server.
*/
DB2("com.ibm.db2.jcc.DB2Driver", "com.ibm.db2.jcc.DB2XADataSource");
private final String driverClassName;

Loading…
Cancel
Save