IDEA构建⼀个基于SpringBoot的微服务架构项⽬(持续更新
中)
1:创建⼀个项⽬
2:配置maven setting⽂件
修改本地仓库地址:
<!-- localRepository
springboot结构
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository -->
<localRepository>E:\.m2\repository_basedemo</localRepository>
添加阿⾥云的开源镜像:
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | -->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>maven.aliyun/nexus/content/repositories/central/</url>
</mirror>
</mirrors>
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论