title: spring boot loading jars (application dependencies and external file system jars)
body: <p>I am trying to figure out what is the best way to setup a spring boot application in such a way that its has its own jar dependencies but additional jars are added to classpath at runtime when its being run as java -jar command. What approach makes more sense</p>
  
  <ol>
  <li><p>Use the original jar (without dependencies added to it) and place all jars (application and runtime) in a folder on file system and use PropertiesLauncher to specify the loader.path to jars folder.</p></li>
  <li><p>Use the fat jar (with application jars) place the additional jars on the filesystem and somehow include those as additional jars that need to be added to classpath. Not sure how this can be done.</p></li>
  <li><p>Is there another better way to do this</p></li>
  </ol>