Spring Boot likes you to externalize your configuration so you can work with the same ... e.g. --server.port=9000 ) to a property and add it to the Spring Environment . ... java -jar myproject.jar --spring.config.location=classpath:/default.properties ... works particularly well with the SpringApplication external YAML configuration:
DOWNLOAD: https://tinurli.com/2fc754
DOWNLOAD: https://tinurli.com/2fc754
spring-boot-add-external-folder-to-classpath
939c2ea5af
Commentaires