jsp 发布war 包到Tomcat

1、将项目打包成war,打包过程这里不做赘述

2、在linux或者windows下安装xmapp

3、打开Tomcat下conf/server.xml,在host下添加一行        <Context   path="/"   docBase="test"  reloadable="true" privileged="true" debug="0" />

4、然后把名字为test.war的包放到webapps下,如果是其他名字,把docBase改成对应的名字就行

5、重启Tomcat,webapps下会多出来一个test文件夹

6、localhost:port

猜你喜欢

转载自www.cnblogs.com/chenadong/p/9633117.html