IDEA报错There is no configuredrunning web-servers found Please, run any web-configuration and hit the
首先来说这样的问题就是由idea中的一些配置文件的设置和tomocat的配置不正确所导致的。
这篇文章,也参考了下面这篇文章的内容
参考地址
所以我讲的就是如何正确配置idea中的web项目
你需要并且已经准备好了的,一个已经导入idea中的项目(GitHub、码云、或者自己写的)
开始
正确的配置
第一步
项目名有什么用,没啥用,就是一个名字。
第二步
配置Modules
如何导入moddel,这里可能会产生你的项目是依赖meven还是本地的jar是不同的,我的和参考文章就是不同的,如果你这里产生了问题,就去百度导入moddel的配置。
这里配置其他的东西比如配置文件,也就是eclipse中的resource文件夹,如何配置请参考另一个。
第四步
这里请参考,参考文章,我的是meven不需要配置这个
第五步
配置facets,点击上方+号。选择web,选择刚才配置的Modules即可
第六步
配置Artifacts
如何配置Tomcat网上有很多的方法
百度
这里还有要说的是
红框中的地址最好和你的项目名是一致的
你的项目名和你的文件,也就是你的项目,文件夹的名字最好都是一致的。
最后加油程序员,如果你好几天解决了一个问题, please keep on!
参考文章在上面