Skip to content

Commit 96752fa

Browse files
committed
Refactor application.yml to use 'spring.config.activate.on-profile' for profile activation
1 parent 66f845c commit 96752fa

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/main/resources/application.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,29 @@ server:
2424
port: 8080
2525
---
2626
spring:
27-
profiles: say-text
27+
config:
28+
activate:
29+
on-profile: say-text
2830
polly:
2931
access-key: ${POLLY_ACCESS_KEY}
3032
secret-key: ${POLLY_SECRET_KEY}
3133
file-service:
3234
url: ${FILE_SERVICE_URL}
3335
---
3436
spring:
35-
profiles: dev
37+
config:
38+
activate:
39+
on-profile: dev
3640
logging:
3741
level:
3842
org.springframework.web: DEBUG
3943
ru.javazen.telegram.bot: DEBUG
4044
org.hibernate: DEBUG
4145
---
4246
spring:
43-
profiles: production
47+
config:
48+
activate:
49+
on-profile: production
4450
datasource:
4551
url: ${IGOR_DB_CONNECTION_URL}
4652
username: ${IGOR_DB_USER}

0 commit comments

Comments
 (0)