当eclipse将项目运行在tomcat时,有多种选择
Eclipse配置tomcat默认是发布到.metadata\plugins\目录下的,wtpwebapps。
tomcat 目录之 webapps 和 wtpwebapps
eclipse默认server Loaction 是第一个,当你选择第二个的时候,可以选择Server Path
默认是 wtpwebapps 当然也可以手动选择webapps,如上图我就是选择了 webapps。
以这种方式启动tomcat运行项目,wtpwebapps /webapps 中会出现关于你项目的文件夹(相当于tomcat运行打开war包后的文件夹)

注意
当你 wtpwebapps 目录下有文件夹时,将war包放入 webapps 运行项目,tomcat将不会读取
webapps 下的war包并解压。而是会直接运行wtpwebapps 下的文件夹中的项目

相关文章:

  • 2022-02-07
  • 2021-08-10
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-07-22
猜你喜欢
  • 2022-01-04
  • 2021-12-10
  • 2022-01-18
  • 2022-01-11
  • 2021-11-18
  • 2021-04-21
相关资源
相似解决方案