From 008dee5dce77476cee7e97529f6ff3080f83946b Mon Sep 17 00:00:00 2001 From: Kamil Szymanski Date: Sat, 18 Apr 2015 21:08:14 +0200 Subject: [PATCH] Add JDBC url to Driver class name mappings for DB2, Teradata and Firebird See gh-2843 --- .../boot/autoconfigure/jdbc/DriverClassNameProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DriverClassNameProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DriverClassNameProvider.java index b978429bd1..540b6d32be 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DriverClassNameProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DriverClassNameProvider.java @@ -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. @@ -46,6 +46,9 @@ class DriverClassNameProvider { drivers.put("postgresql", "org.postgresql.Driver"); drivers.put("jtds", "net.sourceforge.jtds.jdbc.Driver"); drivers.put("sqlserver", "com.microsoft.sqlserver.jdbc.SQLServerDriver"); + drivers.put("firebirdsql", "org.firebirdsql.jdbc.FBDriver"); + drivers.put("db2", "com.ibm.db2.jcc.DB2Driver"); + drivers.put("teradata", "com.teradata.jdbc.TeraDriver"); DRIVERS = Collections.unmodifiableMap(drivers); }