如何使用Intellij为我的Gradle项目设置本地托管端口?如何使用Intellij为我的Gradle项目设置本地托管端口?
我想在intelliJ IDE中用bootstrap运行一个Gradle项目。 在运行它,我得到休耕错误:
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.
我已经看着什么会在该端口上监听以及如何杀死它似乎是更多的麻烦比它的价值。这是我尝试:
我在寻找如何更改我的项目使用的端口。我使用IntelliJ 2017.1和Gradle 3.4.1。我见过的大多数解决方案都使用BuildConfig.groovy文件,但我不相信我的项目有任何这样的文件。
任何方式来解决托管问题将是伟大的,但现在我想改变默认端口是最好的方法。
'在intelligentJ IDE中引导程序的Gradle项目究竟是什么?你在运行什么样的服务器?它是弹簧引导应用程序吗? – sm4
是的,这是一个弹簧引导web应用程序。我没有运行服务器,我只是想在本地运行测试项目 – LittleRaven