spring boot 加载本地jar文件
需要在pom中添加如下2段代码即可
<dependency> <groupId>com.romic.api</groupId> <artifactId>demo</artifactId> <version>1.0-SNAPSHOT</version> <scope>system</scope> <systemPath>${basedir}/lib/com-romic-api.jar</systemPath> </dependency>
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin>