一、部署

1、生成war包, 例如test.war

2、将test.war拷贝到$TOMCAT_HOME/webapps中

3、添加如下语句到$TOMCAT_HOME/conf/server.xml

<Context path="/" docBase="****" debug="0" privileged="true" reloadable="true"/>


tomcat中部署war包

****表示war包的名称,不带格式后缀。

至此,部署完成!


4. 输入网址访问:"http://{ip}:{port}/{war包名称}/{访问的默认首页}




相关文章:

  • 2021-08-25
  • 2021-11-23
  • 2021-11-23
  • 2021-04-08
  • 2021-05-09
  • 2022-12-23
  • 2021-09-16
  • 2021-11-05
猜你喜欢
  • 2021-11-23
  • 2021-04-22
  • 2021-05-06
  • 2021-09-08
  • 2021-11-23
  • 2021-11-23
  • 2021-11-23
相关资源
相似解决方案