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

时间:2024-04-04 22:23:15

出现这个问题的原因是对idea的使用还不是太了解,这个提示的意思是没有找到与artifact对应的tomcat

一下给出两种出现问题的可能

一 、没有配置tomcat,解决办法:

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

 选择Edit Configurations,会弹出配置页

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

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

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

 点击Configure,配置Tomcat的路径

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

 

 

 

二、配置tomcat了,但是tomcat中对应的Artifact不对,我们要用的是exploded的Artifact,而不是war形式的Artifact

 

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

上图中选中的:war形式的Artifact是不对的,要换成:exploded

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

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

再删去原来的,并保存设置,重启tomcat即可

三、如果还不tm的行。。

   将IDEA配置的tomcat配置 的 “library”项增加 tomcat 的 lib 目录,再重启:

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

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