1.安装maven,配置环境变量 ,新建系统变量 MAVEN_HOME,变量值:E:\Maven\apache-maven-3.3.9;编辑系统变量 Path,添加变量值:;%MAVEN_HOME%\bin。
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
<localRepository>/path/to/local/repo</localRepository>
2.
![](https://img.haomeiwen.com/i3329546/34aed9fab5d5db45.png)
3.
![](https://img.haomeiwen.com/i3329546/c774eabf37c098ef.png)
![](https://img.haomeiwen.com/i3329546/e19f81f0db1f0855.png)
4.springboot配置文件
pom.xml
<repositories>
<repository>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
5.
![](https://img.haomeiwen.com/i3329546/46a6e420ae7bb14c.png)
http://www.spring-boot.org/doc/pages/getting-started.html#getting-started-cli-command-line-completion
6.
![](https://img.haomeiwen.com/i3329546/db19d160b5aaea80.png)
7.mvn spring-boot:run命令行启动命令
网友评论