i have a java project with spring boot and I need to load application.properties and dependency jar from external folder.
I tested by using the application.properties in the classpath, and the loader.path property work correctly.
When I use external properties file (I'm sure they're used) the loader.path not work correctly and the result is ClassNotFound because the jars are not loaded.
Also when i launch the application with **-Dloader.path=**xxx it's work correctly.
How can I solve the problem using external properties and jar?
Here is the document
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.