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:There is no configured/running web-servers found! Please, run any web-configuration and hit the_开发工具篇

 

原来IDEA要这么做,需要先把服务容器启动起来,工具栏中选中Run,然后选择Run...,会跳出配置页面

IDEA:There is no configured/running web-servers found! Please, run any web-configuration and hit the_开发工具篇_02

 选择Edit Configurations,会弹出配置页

IDEA:There is no configured/running web-servers found! Please, run any web-configuration and hit the_开发工具篇_03

 左侧在Default中,有很多服务配置可以选,这里选择Tomcat Server.Local

IDEA:There is no configured/running web-servers found! Please, run any web-configuration and hit the_开发工具篇_04

 点击Configure,配置Tomcat的路径

IDEA:There is no configured/running web-servers found! Please, run any web-configuration and hit the_开发工具篇_05

 

做完这些就可以让项目Running起来,然后愉快的右键选中页面在浏览器中浏览了

 

IDEA:There is no configured/running web-servers found! Please, run any web-configuration and hit the_开发工具篇_06