Spring boot can not find resource file after packaging
问题 I use Spring boot maven plugin to package application as jar file. It can find the resource file direct run in Itellij IDE, But it can not find resource file after, it display error as : java.io.FileNotFoundException: class path resource [jmxremote.password] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/home/XXX/target/YYY.jar!/BOOT-INF/classes!/jmxremote.password However, the file "jmxremote.password" indeed exist in the jar file. private