[JAVA-26049] Upgraded spring-boot-environment module to spring-boot 3… (#14994)

This commit is contained in:
panos-kakos 2023-11-06 08:52:53 +00:00 committed by GitHub
parent 5b7c37eab5
commit 91293d64b0
4 changed files with 17 additions and 15 deletions

View File

@ -9,9 +9,10 @@
<description>Demo project for Spring Boot</description>
<parent>
<groupId>com.baeldung.spring-boot-modules</groupId>
<artifactId>spring-boot-modules</artifactId>
<version>1.0.0-SNAPSHOT</version>
<groupId>com.baeldung</groupId>
<artifactId>parent-boot-3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../parent-boot-3</relativePath>
</parent>
<dependencies>
@ -46,11 +47,6 @@
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<version>${jpa.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
@ -96,6 +92,15 @@
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.baeldung.environmentpostprocessor.PriceCalculationApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
@ -151,7 +156,6 @@
</profiles>
<properties>
<jpa.version>2.2</jpa.version>
<subethasmtp.version>3.1.7</subethasmtp.version>
<httpclient.version>4.5.8</httpclient.version>
<spring.cloud-version>2021.0.0</spring.cloud-version>

View File

@ -1,6 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.baeldung.environmentpostprocessor.autoconfig.PriceCalculationAutoConfig
org.springframework.boot.env.EnvironmentPostProcessor=\
com.baeldung.environmentpostprocessor.PriceCalculationEnvironmentPostProcessor

View File

@ -0,0 +1 @@
com.baeldung.environmentpostprocessor.autoconfig.PriceCalculationAutoConfig

View File

@ -0,0 +1,3 @@
org.springframework.boot.env.EnvironmentPostProcessor=\
com.baeldung.environmentpostprocessor.PriceCalculationEnvironmentPostProcessor