环境变量配置
1,新建变量名:JAVA_HOME,变量值:C:\Program Files\Java\jdk1.8.0_101
2,打开PATH,添加变量值:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
3,新建变量名:CLASSPATH,变量值:.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
4,新建变量名:CATALINA_BASE,变量值:C:\apache-tomcat-8.5.6
5,新建变量名:CATALINA_HOME,变量值:C:\apache-tomcat-8.5.6
6,打开PATH,添加变量值:%CATALINA_HOME%\lib;%CATALINA_HOME%\bin
7,新建变量名:MAVEN_HOME,变量值:C:\apache-maven-3.3.9
8,打开PATH,添加变量值:%MAVEN_HOME%\bin
9,设置本地仓库,<localRepository>D:/MavenRepository</localRepository>
10,添加和删除tomcat服务
(1),添加服务,在tomcat目录的bin下面,执行service.bat install
(2),删除服务,在tomcat目录的bin下面,执行service.bat remove