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

关于出现这个问题,我想大概你想在idea中不启动Tomcat的情况下预览jsp文件吧。那么我想说:
1、idea中不启用tomcat就会出现这个问题.本人在网上还没有找到不启用tomcat就能在idea中直接访问jsp文件的资料以及博客。
2.启动tomcat之后,访问index.jsp文件一个是这个样子
第一张图片: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

第三张图片: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

两个index.jsp出来的界面不同是因为两个不同的项目,
第一张图片是一个项目:没有使用springmvc框架
第二、三、四 三张图片是另一个项目:使用了springmvc 框架
之所以浏览器上出现源码是因为在 idea中(在index.jsp文件中)点击了浏览器按钮。为什么在浏览器中出现源码,正是我们第二个项目中使用了springmvc的框架,springmvc框架中配置的DIspacherServlet把 *.jsp文件当成了一个文件直接给输出了在了浏览器上。

简单来说,就是web项目中使用了springmvc框架和没有使用,在index.jsp文件中点击浏览器按钮会不会出源码。