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.
微信截图_20200316093834.png
3. 微信截图_20200316093849.png
微信截图_20200316095347.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.
微信截图_20200317164212.pnghttp://www.spring-boot.org/doc/pages/getting-started.html#getting-started-cli-command-line-completion
6. 微信截图_20200319084414.png
7.mvn spring-boot:run命令行启动命令
网友评论