添加lib文件:
pom添加配置:
<dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk16</artifactId> <version>1.46</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/resources/lib/bcprov-jdk16-1.46.jar</systemPath> </dependency> <dependency> <groupId>sviolet.smcrypto</groupId> <artifactId>hanweb-sm</artifactId> <version>4.1.1</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/resources/lib/hanweb-sm-4.1.1.jar</systemPath> </dependency>
添加打包时包含本地引入的jar配置:
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> </plugins> </build>