1. 程式人生 > >Idea web專案執行報錯 IDEA There is no configured/running web-servers found! Please, run any web-configura

Idea web專案執行報錯 IDEA There is no configured/running web-servers found! Please, run any web-configura

IDEA There is no configured/running web-servers found! Please, run any web-configuration and hit the Refresh button!

初次使用使用IDEA搭建web application,習慣性的右鍵jsp頁面在選擇瀏覽器瀏覽,以為會想VS一樣自動啟動,結果提示

原來IDEA要這麼做,需要先把服務容器啟動起來,工具欄中選中Run,然後選擇Run...,會跳出配置頁面

 選擇Edit Configurations,會彈出配置頁

 左側在Default中,有很多服務配置可以選,這裡選擇Tomcat Server.Local

 點選Configure,配置Tomcat的路徑

 

做完這些就可以讓專案Running起來,然後愉快的右鍵選中頁面在瀏覽器中瀏覽了。