(1)jar包放项目中(如下图)
(2)修改依赖配置
加入:
<dependency> <groupId>cn.newhope</groupId> <artifactId>ServiceTemplate</artifactId> <version>1.1.12-SNAPSHOT</version> <scope>system</scope> <systemPath>${project.basedir}/libs/ServiceTemplate-1.1.12-SNAPSHOT.jar</systemPath> </dependency>
加入:
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> </plugins> </build>