Reputation: 1372
I'm using Spring boot 1.3.0.RELEASE. And with this application, I'm using oracle drive for DB transaction. Now, The scenario is like this, I can't use maven dependency mapping for this, it has to load it from, some external location while starting up. Thereofore, the Springboot jar, will not have it, it will load from some external folder, while starting.
So, my question is, How to do that?
Upvotes: 1
Views: 8930
Reputation: 1
java -cp demo.jar -Dloader.path=c:/lib/ -Dloader.main=yourServer org.springframework.boot.loader.PropertiesLauncher
Upvotes: 0
Reputation: 154
simplify, you can install Oracle jdbc driver in your local environment or private maven repository.
Upvotes: 0
Reputation: 31
Spring boot doesn't use the classpath like that. Use the loader.path setting to specify a directory containing that external jar you want to load by default it should look in a folder called lib/ inline with the spring boot jar you're running
├── lib
│ └── ojdbc.jar
└── my-spring-boot-executable.jar
Upvotes: 3