为了账号安全,请及时绑定邮箱和手机立即绑定

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 关注
  • 1687 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信