1.在resources目录下新建lib目录,将jar放入
2.在pom.xml 中加入依赖
<dependency> <groupId>fastjson</groupId> <artifactId>fastjson</artifactId> <version>1.2.31</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/resources/lib/fastjson-1.2.31.jar</systemPath> </dependency>
3.在plugins下加入
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin>
本文为看恩吧原创文章,转载无需和我联系,但请注明来自knsay.com