亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

maven ssm項目,war放到tomcat就resource is not available?

maven ssm項目,war放到tomcat就resource is not available?

千萬里不及你 2018-10-08 18:31:59
我把這個項目在idea里clean and install之后war文件放到了tomcat安裝目錄的webapps目錄下,啟動tomcat,隨便看一個網頁就是The requested resource is not available。只有tomcat的主頁是能看的。我需要項目在tomcat 7.0.56里正常運行。jetty配置如下:    <plugin>        <groupId>org.mortbay.jetty</groupId>        <artifactId>maven-jetty-plugin</artifactId>        <version>6.1.25</version>        <configuration>            <connectors>                <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">                    <port>8888</port>                    <maxIdleTime>60000</maxIdleTime>                </connector>            </connectors>            <contextPath>/ABC</contextPath>            <scanIntervalSeconds>0</scanIntervalSeconds>        </configuration>    </plugin>    
查看完整描述

2 回答

?
翻閱古今

TA貢獻1780條經驗 獲得超5個贊

正確的網址是:http://localhost:8888/項目名-1.0/test.html。
war文件的文件名是項目名-1.0.war

查看完整回答
反對 回復 2018-10-29
  • 2 回答
  • 0 關注
  • 1872 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號