Skip to content

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

spring-boot-modules/spring-boot-properties/pom.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,33 @@
122122
</profile>
123123
</profiles>
124124

125+
<repositories>
126+
<repository>
127+
<id>spring-milestones</id>
128+
<name>Spring Milestones</name>
129+
<url>https://repo.spring.io/milestone</url>
130+
<snapshots>
131+
<enabled>false</enabled>
132+
</snapshots>
133+
</repository>
134+
</repositories>
135+
<pluginRepositories>
136+
<pluginRepository>
137+
<id>spring-milestones</id>
138+
<name>Spring Milestones</name>
139+
<url>https://repo.spring.io/milestone</url>
140+
<snapshots>
141+
<enabled>false</enabled>
142+
</snapshots>
143+
</pluginRepository>
144+
</pluginRepositories>
145+
125146
<properties>
126147
<spring-cloud.version>2023.0.1</spring-cloud.version>
127148
<commons-configuration.version>1.10</commons-configuration.version>
128149
<resource.delimiter>@</resource.delimiter>
129150
<start-class>com.baeldung.yaml.MyApplication</start-class>
130-
<spring-boot.version>3.2.2</spring-boot.version>
151+
<spring-boot.version>3.5.0-M3</spring-boot.version>
131152
</properties>
132153

133154
</project>

spring-boot-modules/spring-boot-properties/src/main/resources/application.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,12 @@ java.home.and.environment=${JAVA_HOME}+${OS}
88
not.existing.system.property=${thispropertydoesnotexist}
99
baeldung.presentation=${HELLO_BAELDUNG}. Java is installed in the folder: ${JAVA_HOME}
1010

11+
# This property requires Spring Boot version 3.5.0-M2 or above to load multiple properties from single environment variable.
12+
spring.config.import=env:DATABASE_CONFIG
13+
14+
spring.datasource.url=${DATABASE_URL}
15+
spring.datasource.username=${USERNAME}
16+
spring.datasource.password=${PASSWORD}
17+
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
18+
spring.datasource.driverClassName=org.h2.Driver
19+

0 commit comments

Comments
 (0)