1

I would like to know if is possible use external jars with web application that uses spring boot with embedded server.

Example:

java -cp external.api -jar app.war -spring.config.location=application.properties

When I use application I got errors like ClassNotFoundException for classes that are inside of external jar.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
jux
  • 79
  • 11
  • Why aren't these external jars in the runtime dependencies of your app? – JB Nizet Jun 13 '16 at 21:25
  • you mean, inside of lib folder? if yes, there is a requirement that this library musn't be encapsulated into project due to infrastructure upgrades. – jux Jun 13 '16 at 21:30

0 Answers0