一、配置多个tomcat
    a.配置JDK环境变量
    b.修改端口号 3个地方
    c.创建maven 项目, 输入命令:tomcat:run (第一次运行需要下载jar)
二、热部署
    a.给tomcat配置账号密码,找到tomcat-users.xml


        

<role rolename="manager-gui"/>
        <role rolename="manager-script"/>
        <user username="admin" password="123" roles="manager-gui,manager-script"/>



    b.配置pom.xml文件,添加插件:(第一次运行需要下载jar包)


 <plugins>
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <url>http://localhost:8888/manager/text</url>
                    <!-- <path>/</path> -->
                    <username>admin</username>
                    <password>123</password>
                </configuration>
            </plugin>
 </plugins>



    c.部署到tomcat:

     tomcat7:deploy 存在,则不再重新部署
        tomcat7:redeploy 每次重新部署