将项目部署到tomcat

1、在idea上将java web项目打成war包,步骤如下:










2、将打包好的war包拷贝到tomcat安装目录的webapps下:



3、修改tomcat安装目录下conf目录里的service.xml文件,在<host></host>之间加上一行:

<Context docBase="D:\software\apache-tomcat-7.0.56\webapps\jixi_manager_web" path="" debug="0" reloadable="true"/>
        <!--注:docBase="tomcat安装目录\webapps\项目名"-->


猜你喜欢

转载自blog.csdn.net/weixin_39936341/article/details/78191083