在新的电脑上打开springBoot项目时,需要导入新的依赖,
有两种设置方法:
方法一:
在springboot项目的pom.xml文件中添加以下代码(更改镜像为阿里云)
<repositories> <repository> <id>aliyun-repos</id> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>aliyun-plugin</id> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories>
方法二:
在Ma