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?
https://www.baeldung.com/spring-properties-file-outside-jar
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
Обсуждают сегодня