IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit

文章目录

    • 问题出现:
    • 问题解决方案:
      • 1、点击run-->Edit Configurations或者点击右上角的Add Configurations
      • 2、 IDEA配置Tomcat环境,选择Templates-->Tomcat Server-->Local,然后点击Configure选择本地安装了的Tomcat路径
      • 3、再次进入Edit Configurations,这次点击+号,表示配置当前项目的运行按钮,选择Tomcat Server --> Local
      • 4、改端口号
      • 5、将项目部署到Tomcat中
      • 6、找到Tomcat的安装路径的bin目录,双击startup.bat启动Tomcat
      • 7、运行项目
      • 8、现在可以直接点击右上角的浏览器图标浏览页面效果了

问题出现:

当我们在做web项目时,经常会点击右上角的浏览器来看一下页面的显示效果。如图:

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第1张图片

然而,html文件是可以直接点击浏览,不会出现问题;但是jsp页面则不行,会出现如下错误:There is no configured/running web-servers found! Please, run any web-configuration and hit the Refresh button!

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第2张图片

问题解决方案:

1、点击run–>Edit Configurations或者点击右上角的Add Configurations

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第3张图片

2、 IDEA配置Tomcat环境,选择Templates–>Tomcat Server–>Local,然后点击Configure选择本地安装了的Tomcat路径

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第4张图片

3、再次进入Edit Configurations,这次点击+号,表示配置当前项目的运行按钮,选择Tomcat Server --> Local

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第5张图片

4、改端口号

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第6张图片

5、将项目部署到Tomcat中

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第7张图片
IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第8张图片

6、找到Tomcat的安装路径的bin目录,双击startup.bat启动Tomcat

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第9张图片

7、运行项目

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第10张图片

8、现在可以直接点击右上角的浏览器图标浏览页面效果了

IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第11张图片
IDEA报错:There is no configured/running web-servers found! Please, run any web-configuration and hit_第12张图片

你可能感兴趣的:(安装与配置问题,tomcat,jsp,web,java)