1、找到 tomcat安装目录/conf/server.xml
2、修改host元素的配置如下:
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
1、找到 tomcat安装目录/conf/server.xml
2、修改host元素的配置如下:
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
想实现这样的功能: 1. Tomcat启动时随即启动Servlet; 2. Servlet启动时定时执行一个任务。要点: 1。Tomcat中启动
Servlet侦听器要运用Servlet侦听器需要实现javax.servlet.Servlet
如图,把war包放到tomcat的webapps目录,会被自动解压
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M