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

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

在IDEA运行jsp的时候出现这个问题
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第1张图片
原因:项目没有配置好

【新增记录】 2022.4.21
根据评论区反馈。
如果完成了配置Artifacts的时候仍然没有Artifacts可以添加。那有可能是需要添加web框架支持。
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第2张图片
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第3张图片

过程: 1.先配置Artifacts (步骤1-3) 完成可以跳过
2.然后配置tomcat

1.按下ctrl+alt+shift+s
或者点击
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第4张图片
进入项目结构
2.点击左侧Artifacts —> Web APPlicati: EXploded --> from modules 如图
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第5张图片
3.选择你的项目

IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第6张图片
完成过程1

IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第7张图片

如果你之前完成过上面的过程就可以跳过直接来到下面

过程2
配置tomcat

4.点击这2个地方都行 我点的是锤子那里
如果点击run的话 再点击编辑配置
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第8张图片
来到这个页面 ,点击 + …下滑找到tomcat 选择local
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第9张图片
点击确定

5.先点击deployment 去tomcat添加Artifacts
点击+号
选择Artifas
选择刚才自己添加的项目(也可以添加其他的,这样一个tomcat可以运行同一个项目里的几个,不用重复配置,也可以重复配置 个人所好)
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第10张图片
确定

6.开始运行,等待tomcat启动后,就可以打开jsp啦
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第11张图片
IDEA There is no configured/running web-servers found Please, run any web-configuration and hit the_第12张图片

你可能感兴趣的:(笔记)