Add external library .jar to Spring boot .jar internal /lib

前端 未结 7 1359
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 23:04

I have an external .jar that cannot be imported from public repositories using pom.xml, it\'s sqljdbc41.jar.

I can run the project locally from my IDE,

7条回答
  •  旧时难觅i
    2020-11-29 23:40

    another way, you can put it into the resources folder, such as resources/lib/xxx.jar, then config the pom.xml like this:

    
    com.microsoft.sqlserver
    sqljdbc41
    4.1
    system
    ${basedir}/src/main/resources/lib/sqljdbc41.jar
    

提交回复
热议问题