Cannot find application properties when executing Spring Boot Application
Answered
I have created a run configuration to run a Spring Boot Application, but as the classpath is too long I have had to use one of the shorten options. The properties are defined within src/main/resources/config and these files are also present in the target directory.
But when I execute the application it logs that it cannot load the config/application-name.default.properties file from the classpath. The file is definitely present, but I don't understand why it is not available as all of the paths look correct.
Please sign in to leave a comment.
Does it work fine if you run it via Gradle/Maven?
I'd report a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA with the reproducible test case if the issue is IntelliJ IDEA specific.