简体   繁体   中英

IntelliJ IDEA stopped deploying webapp on tomcat

这是我的项目 It uses tomcat to deploy. It used to run perfectly fine and when I pressed "Run" it opened a index.jsp in my web-browser which I used as starting navigation point.

But after I decided to try and run it without IDE, by copying contents into tomcat/webapps, something changed, although I'm not sure if it's connected. Now when I press "Run" inside project it just opens up a 默认的Tomcat主页 although absolutely nothing from my project got changed. And if you go into manager from there there are no applications running aside from manager itself, not even ones in /webapps in tomcat directory.

What exactly happened and how can I change it back?

这是配置设置

UPDATE it's started working somehow. No idea why and what happened

Tomcat has a web.xml file where you can define your <welcome-file-list>

Please take a look at this

Also you can compile your webApp as a .war to deploy it on your Tomcat server.

Follow the instructions in this link if you need help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM