找到我们的tomcat,再起bin文件夹中找到server.xml文件,在文件的最下方 找到 <Engine name="Catalina" defaultHost="localhost">    <Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">标签将localhost改为域名  添加unpackWARs="true" autoDeploy="true"两个属性。

在Host中添加  <Context path="" docBase="D:/upload/test" reloadable="true" crossContext="true"/>,path中填空,docbase为我们项目源程序的位置。

web项目tomcat如何设置通过域名访问项目

相关文章:

  • 2022-01-18
  • 2021-09-04
  • 2021-09-11
  • 2021-06-14
  • 2022-01-17
  • 2021-11-03
  • 2021-07-30
猜你喜欢
  • 2022-01-05
  • 2021-10-18
  • 2021-04-18
  • 2021-04-21
  • 2021-11-09
  • 2021-04-03
相关资源
相似解决方案