From 083b3063dbbd9450727575654422c3bf3df9dff8 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Mon, 22 Nov 2021 09:26:22 +0100 Subject: [PATCH] [jOOQ/jOOQ#12644] Upgrade Spring Boot example to Spring Boot 2.6 --- .../org/jooq/example/spring/Application.java | 19 +++++++++++++------ pom.xml | 4 ++-- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/jOOQ-examples/jOOQ-spring-boot-example/src/main/java/org/jooq/example/spring/Application.java b/jOOQ-examples/jOOQ-spring-boot-example/src/main/java/org/jooq/example/spring/Application.java index a6a87401fb..b5df8b2eeb 100644 --- a/jOOQ-examples/jOOQ-spring-boot-example/src/main/java/org/jooq/example/spring/Application.java +++ b/jOOQ-examples/jOOQ-spring-boot-example/src/main/java/org/jooq/example/spring/Application.java @@ -10,16 +10,23 @@ import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration; * The spring boot application. *

* Starting from jOOQ 3.15, jOOQ supports {@link DSLContext} with a configured - * R2DBC {@link Configuration#connectionFactory()} out of the box. Up until - * Spring Boot 2.5, Spring Boot is not aware of this, and may auto configure an - * R2DBC connection rather than a JDBC connection. To work around this, use - * {@link SpringBootApplication#exclude()} to explicitly exclude the - * {@link R2dbcAutoConfiguration}. + * R2DBC {@link Configuration#connectionFactory()} out of the box. + *

+ * Historic note: Up until Spring Boot 2.5, Spring Boot is not aware of + * this, and may auto configure an R2DBC connection rather than a JDBC + * connection. To work around this, use {@link SpringBootApplication#exclude()} + * to explicitly exclude the {@link R2dbcAutoConfiguration}: + *

+ *

+ * @SpringBootApplication(exclude = { R2dbcAutoConfiguration.class })
+ * 
+ *

+ * However, it is recommended you upgrade to Spring Boot 2.6 instead. * * @author Thomas Darimont * @author Lukas Eder */ -@SpringBootApplication(exclude = { R2dbcAutoConfiguration.class }) +@SpringBootApplication public class Application { public static void main(String[] args) { diff --git a/pom.xml b/pom.xml index 847015f52d..c52d1fc17f 100644 --- a/pom.xml +++ b/pom.xml @@ -57,8 +57,8 @@ 5.4.31.Final 4.4.1 - 5.3.7 - 2.5.5 + 5.3.13 + 2.6.0 2.3.4 2.9.0 1.16.2