I have two Spring Boot applications:
cloud-config
It has following file structure:
└───src
└───main
└───environment
└───default
├───application.yml
└───bootstrap.yml
...
application.yml
:
server:
port: 8087
spring:
cloud:
config:
server:
git:
uri: ssh://path-to-repository.git
bootstrap.yml
:
spring:
application:
name: cloud-config
main-application
:
└───src
└───main
└───environment
└───default
├───bootstrap.yml
└───logback.xml
I have application.yml
for my main-application
in git repository.
Also in git repository I have file with properties: application-default.properties
.
I want to move logback.xml
to git repository to get it with spring-cloud. How can I do this?
To solve my task I have done following:
add logback.xml
to my Spring Cloud repository;
remove logback.xml
from main > environment > default
directory;
add to bootstrap.yml
of main-application
module:
logging:
config: http://localhost:8087/main-application/default/master/logback.xml
logging: config:
path: Serving plain text
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With