Skip to content

Commit 7b9e0b8

Browse files
committed
chore: split spring profiles into dedicated files as required by Spring Boot 3
1 parent f6ffe9b commit 7b9e0b8

File tree

21 files changed

+145
-133
lines changed

21 files changed

+145
-133
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
spring:
2+
boot:
3+
admin:
4+
ui:
5+
cache:
6+
no-cache: true
7+
template-location: file:../../spring-boot-admin-server-ui/target/dist/
8+
resource-locations: file:../../spring-boot-admin-server-ui/target/dist/
9+
cache-templates: false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
info.tags.security: insecure
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
spring:
2+
security:
3+
user:
4+
name: "user"
5+
password: "password"

spring-boot-admin-samples/spring-boot-admin-sample-consul/src/main/resources/application.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,3 @@ management:
3333
endpoint:
3434
health:
3535
show-details: ALWAYS
36-
37-
---
38-
spring:
39-
config:
40-
activate:
41-
on-profile: insecure
42-
---
43-
spring:
44-
security:
45-
user:
46-
name: "user"
47-
password: "password"
48-
config:
49-
activate:
50-
on-profile: secure
51-
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
spring:
2+
boot:
3+
admin:
4+
ui:
5+
cache:
6+
no-cache: true
7+
template-location: file:../../spring-boot-admin-server-ui/target/dist/
8+
resource-locations: file:../../spring-boot-admin-server-ui/target/dist/
9+
cache-templates: false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
info.tags.security: insecure
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
spring:
2+
security:
3+
user:
4+
name: "user"
5+
password: "password"
6+
boot:
7+
admin:
8+
client:
9+
username: "user" #These two are needed so that the client
10+
password: "password" #can register at the protected server api
11+
instance:
12+
metadata:
13+
user.name: "user" #These two are needed so that the server
14+
user.password: "password" #can access the protected client endpoints

spring-boot-admin-samples/spring-boot-admin-sample-eureka/src/main/resources/application.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,3 @@ management:
2727
health:
2828
show-details: ALWAYS
2929
# end::configuration-eureka[]
30-
31-
---
32-
spring:
33-
config:
34-
activate:
35-
on-profile: insecure
36-
---
37-
spring:
38-
security:
39-
user:
40-
name: "user"
41-
password: "password"
42-
config:
43-
activate:
44-
on-profile: secure
45-
eureka:
46-
instance:
47-
metadata-map:
48-
user.name: "user" #These two are needed so that the server
49-
user.password: "password" #can access the protected client endpoints
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
spring:
2+
boot:
3+
admin:
4+
ui:
5+
cache:
6+
no-cache: true
7+
template-location: file:../../spring-boot-admin-server-ui/target/dist/
8+
resource-locations: file:../../spring-boot-admin-server-ui/target/dist/
9+
cache-templates: false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
info.tags.security: insecure

0 commit comments

Comments
 (0)