学习intellji idea:解决The requested resource is not available的问题

创建一个prog以后,在intellji里run,正常运行。这时的url是:(例如)

http://localhost:8080/Try_war_exploded/

但退出intellji以后,企图再在浏览器里用上面的url浏览,就会出现The requested resource is not available。民贴问也没有说清楚。也许是高手们不懈对小白说吧!结果是需要完整的路径才能浏览。在纯的tomcat服务器开启的情况下,url要写成
http://localhost:8080/Try/out/artifacts/Try_war_exploded/才行。由于在项目目录下有两个index.jsp,一个在out里,另一个在web里。所以,http://localhost:8080/Try/web/也能启动里面的index.jsp。在intellji里,不管编辑哪一个index.jsp,都会自动全部更新。

猜你喜欢

转载自blog.csdn.net/whbtomt/article/details/86523250
今日推荐