JavaWeb基础:安装tomcat和maven
JavaWeb基础:安装tomcat和maven
tomcat闪退问题
下载zip即可,无需配置,只需运行相关文件即可
文档所在位置:D:\Environment\apache-tomcat-9.0.78\bin
开启:startup.bat
关闭:shutdown.bat
java8 不适用tamcat10及以上版本
解决办法:https://blog.csdn.net/egegerhn/article/details/126064648
maven安装
配置环境变量,如下图所示:

patch配置如下图所示:

打开CMD测试:mvn -version
本地仓库
建立本地仓库:对maven settings.xml进行代码修改,在settings中
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
<localRepository>D:\Environment\apache-maven-3.9.3\maven-repo</localRepository>
阿里云镜像
国内建议使用阿里云镜像,对maven settings.xml进行代码修改 conf目录下
在mirrors中更改下载路径为阿里云镜像地址
<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>
-->
</mirrors>
//阿里云镜像
<mirror>
<id>nexus-aliyun</id>
<name>Nexus aliyun</name>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

浙公网安备 33010602011771号