- 将相关jar包放到类路径下(Build Path -> Add to Build Path);
- 在Pom.xml中的
<build/>
元素中添加<resources/>
元素,示例如下:
<build>
<resources>
<resource>
<directory>${project.basedir}/lib</directory>
<targetPath>BOOT-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
<!-- <resource>
<directory>src/main/resources</directory>
<targetPath>BOOT-INF/classes/</targetPath>
</resource> -->
</resources>
</build>