发现自己引入的.jar包,在打包时,.jar包并不会打进去,导致报错。
打包时打入自定义.jar包方法:
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass></mainClass> <!--将所有.jar包都打进去--> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> </plugins> </build>
自定义引入第三方.jar包方法
<dependency> <groupId>com.tencent</groupId> <artifactId>healthcard</artifactId> <version>2.7</version> <scope>system</scope> <systemPath>${project.basedir}/lib/open-platform-sdk-2.7-jdk1.8.jar</systemPath> </dependency>
标签:自定义,spring,boot,jar,引入,打包 From: https://www.cnblogs.com/phpyangbo/p/17505215.html