开发者社区> 问答> 正文

maven tomcat插件是把项目部署到root目录吗? :报错

  1. <build>  
  2.     <!-- 配置插件 -->  
  3.     <plugins>  
  4.         <plugin>  
  5.             <groupId>org.apache.tomcat.maven</groupId>  
  6.             <artifactId>tomcat7-maven-plugin</artifactId>  
  7.             <configuration>  
  8.                 <port>8080</port>  
  9.                 <path>/</path>  
  10.                 <url>http://192.168.0.73:8080/manager/text</url>  
  11.                 <username>admin</username>  
  12.                 <password>admin</password>  
  13.             </configuration>  
  14.         </plugin>  
  15.     </plugins>  
  16. </build>  

就好像这样   热部署后 访问http://192.168.0.73:8080  就可以直接 转跳项目的index 页面

1. 为什么不用加项目名称呢 ?      

2. 那这两还有用吗? 可以去掉吗 

  1.                 <port>8080</port>  
  2.                 <path>/</path>  

展开
收起
kun坤 2020-06-14 08:01:14 531 0
1 条回答
写回答
取消 提交回答
  • 试一下不就知道了######我现在没时间啊 ,但是迫切的想知道 如果可以开个linux 跑个tomcat我往上面一部署就有结果le######没有配置 <finalName></finalName>

    2020-06-14 08:01:21
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
低代码开发师(初级)实战教程 立即下载

相关镜像