Похожие чаты

I have a Spring Boot application with a properties file

called abc.properties file in the resources folder. As Spring Boot provides externalized configuration, I do not want the packaged abc.properties in the JAR to be picked up for production. Instead I want a custom abc.properties which is placed in the classpath of the JAR (which means alongside the JAR) to be picked up. Will this work?

2 ответов

18 просмотров

https://www.baeldung.com/spring-properties-file-outside-jar

Roy- Автор вопроса
Sergey Magochkin
https://www.baeldung.com/spring-properties-file-ou...

it mentions it is only for application.properties whereas my file is not application.properties, and it doesn't even use Spring @PropertySource Annotations in any way

Похожие вопросы

Обсуждают сегодня

Карта сайта