mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Deprecate Derby support since Apache Derby is retired
Closes gh-48567
This commit is contained in:
+4
@@ -119,6 +119,10 @@ public final class DevToolsDataSourceAutoConfiguration {
|
||||
|
||||
private enum InMemoryDatabase {
|
||||
|
||||
/*
|
||||
* @deprecated since 4.1.0 for removal in 4.3.0 as Derby is EOL.
|
||||
*/
|
||||
@Deprecated(since = "4.1.0", forRemoval = true)
|
||||
DERBY(null, Set.of("org.apache.derby.jdbc.EmbeddedDriver"), (dataSource) -> {
|
||||
String url;
|
||||
try (Connection connection = dataSource.getConnection()) {
|
||||
|
||||
+2
@@ -120,6 +120,7 @@ class DevToolsPooledDataSourceAutoConfigurationTests extends AbstractDevToolsDat
|
||||
}
|
||||
|
||||
@Test
|
||||
@Deprecated(since = "4.1.0", forRemoval = true)
|
||||
void derbyClientIsNotShutdown() throws Exception {
|
||||
try (ConfigurableApplicationContext context = getContext(
|
||||
() -> createContext("org.apache.derby.jdbc.ClientDriver", "jdbc:derby://localhost",
|
||||
@@ -131,6 +132,7 @@ class DevToolsPooledDataSourceAutoConfigurationTests extends AbstractDevToolsDat
|
||||
}
|
||||
|
||||
@Test
|
||||
@Deprecated(since = "4.1.0", forRemoval = true)
|
||||
void inMemoryDerbyIsShutdown() throws Exception {
|
||||
try (ConfigurableApplicationContext context = getContext(
|
||||
() -> createContext("org.apache.derby.jdbc.EmbeddedDriver", "jdbc:derby:memory:test;create=true",
|
||||
|
||||
Reference in New Issue
Block a user