Skip to content

Commit

Permalink
spring-boot 3.2 will have some breaking changes, prepare a release be…
Browse files Browse the repository at this point in the history
…fore (#129)
  • Loading branch information
jbellmann committed Dec 21, 2023
1 parent b7c899e commit f9cbf16
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import examples.common.StoreReader;
import examples.common.StoreWriter;
import org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizer;
import org.springframework.boot.autoconfigure.transaction.PlatformTransactionManagerCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
Expand All @@ -13,7 +13,7 @@
public class HibernateAppConfig {

@Bean
TransactionManagerCustomizer<AbstractPlatformTransactionManager> transactionManagerCustomizer() {
PlatformTransactionManagerCustomizer<AbstractPlatformTransactionManager> transactionManagerCustomizer() {
return (AbstractPlatformTransactionManager transactionManager) -> transactionManager
.setValidateExistingTransaction(true);
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
<properties>
<compiler.target.version>17</compiler.target.version>
<compiler.source.version>17</compiler.source.version>
<spring.boot.version>3.2.0</spring.boot.version>
<spring.boot.version>3.1.7</spring.boot.version>
</properties>
</profile>
<profile>
Expand All @@ -172,7 +172,7 @@
<properties>
<compiler.target.version>11</compiler.target.version>
<compiler.source.version>11</compiler.source.version>
<spring.boot.version>2.7.10</spring.boot.version>
<spring.boot.version>2.7.18</spring.boot.version>
</properties>
</profile>
<profile>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package de.jbellmann.rwds.autoconfigure;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringBootVersion;
import org.springframework.core.SpringVersion;

@Slf4j
public class SpringVersionTest {

@Test
void figureOutSpringVersion() {
String springVersion = SpringVersion.getVersion();
log.info("Spring-Version : {}", springVersion);
}

@Test
void figureOutSpringBootVersion() {
String springBootVersion = SpringBootVersion.getVersion();
log.info("SpringBootVersion : {}", springBootVersion);
}

}

0 comments on commit f9cbf16

Please sign in to comment.