将项目部署到tomcat

来源:互联网 发布:淘宝女装店铺公告范文 编辑:程序博客网 时间:2024/05/22 16:39

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\项目名"-->


原创粉丝点击