File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed
spring-boot-modules/spring-boot-properties Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 122
122
</profile >
123
123
</profiles >
124
124
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
+
125
146
<properties >
126
147
<spring-cloud .version>2023.0.1</spring-cloud .version>
127
148
<commons-configuration .version>1.10</commons-configuration .version>
128
149
<resource .delimiter>@</resource .delimiter>
129
150
<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>
131
152
</properties >
132
153
133
154
</project >
Original file line number Diff line number Diff line change @@ -8,3 +8,12 @@ java.home.and.environment=${JAVA_HOME}+${OS}
8
8
not.existing.system.property =${thispropertydoesnotexist}
9
9
baeldung.presentation =${HELLO_BAELDUNG}. Java is installed in the folder: ${JAVA_HOME}
10
10
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
+
You can’t perform that action at this time.
0 commit comments