How does springboot specify which logback file to use?

1. Use the springboot,maven project; logback is under resource, can I specify the location of the logback file at startup? Because I don"t want to use the default file.
similar:-Dserver.port=10080 can specify the same port, I think:-Dxxx.path=logback.xml

Apr.11,2021

https://docs.spring.io/spring.



logbackyml-Dxxx xxx


logback --logging.config;

:
logging.path, logging.file


application.yml:
:image.png
:image.png

Menu