First, maven add external jar
It can be referenced by setting the value of scope, the code is as follows:
<dependency> <groupId>ipaynow</groupId> <artifactId>ipaynow</artifactId> <scope>system</scope> <version>2.1.0</version> <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/ipaynow_base_v2.1.0.jar</systemPath> </dependency>
2. Springboot packages external reference packages
Put the external reference package in the src/main/webapp/WEB-INF/lib/ directory. As shown in the figure: