tomcat 重复加载 解决定时处理是执行2次

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ren365880/article/details/80265555

1.不要把项目放在webapps下


2.在tomcat下建立文件夹,比如www/pro


3.修改server.xml文件

<Context docBase="项目的绝对路径,比如D:/...www/pro" path="" reloadable="true"/>

4 . Host 标记中的 appBase 属性不要去修改,让其为默认值 “webapps”

猜你喜欢

转载自blog.csdn.net/ren365880/article/details/80265555