常见问题
# 配置 NPM 代理
npm config set proxy http://127.0.0.1:7890
npm config set https-proxy http://127.0.0.1:7890
1
2
2
# 如何引入系统依赖
<dependency>
<groupId>com.itheima</groupId>
<artifactId>artifactId</artifactId>
<version>version</version>
<scope>system</scope>
<systemPath>${basedir}/lib/artifactId-version.jar</systemPath>
</dependency>
1
2
3
4
5
6
7
2
3
4
5
6
7
一个项目的 pom.xml
如果使用了 scope
为 system
的依赖后,会导致传递依赖中断,此时需要配置打包时包含系统依赖
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
1
2
3
4
5
6
7
2
3
4
5
6
7
编辑 (opens new window)
上次更新: 2025-04-22 20:57:02
← MQTT