External library folder for Spring Boot

前端 未结 3 2168
-上瘾入骨i
-上瘾入骨i 2021-02-19 05:23

I wonder how to externalize all jdbc drivers for my Spring Boot applications, I would not like to insert jdbc drivers into my fat jar once the application is built.

Is t

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-19 06:02

    Isn't that what the classpath is for? As long as the jdbc driver jars are on the classpath, this should work. Something like this:

    java -classpath /path/to/driver/jar -jar application.jar
    

    You could also set the CLASSPATH environment variable for the same.

提交回复
热议问题