</localRepository>
<localRepository>C:\Users\JSY_01\.m2\repository</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>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
这个就是阿里云的镜像,当我们配置这个之后呢,我们项目利用maven自动下载jar包的时候,就会从阿里云上下载jar包,这个速度非常的快,要比国外的mirror快好多倍,
下zip包和clone有什么区别?
第一种只能下载zip包,不方便更新和修改,你直接用clone的话,clone下来的话他是受git的影响,他可以在这个上面提交
拉取,提交,push都可以,你直接下载成这样,下载zip解压出来的,没有受git影响,空壳子和空代码,单单是个代码,用clone下载下来的呢?
guns管理系统有三种运行方式
第一种:直接运行 GunsApplication,我们的课程现在主要讲解后台管理系统,之后我会介绍rest这个项目,它也是可以启动的一个项目,这个项目是为app提供接口所写的,可以提供 rest api服务,那么admin就是我们的管理系统,后台管理系统,我们主要先讲解他,运行的时候我们打开GunsApplication,他有一个main方法,就是运行这个main方法.
第二种:如何用jar包方式,我们需要用maven命令: clean package -Dmaven.test.skip=true。
在cmd里面ctrl+c关闭jar包
第三种 war包方式启动----tomcat
然后把target下面的war包放到Tomcat bin webapp下,再启动tomcat。