Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring Tomcat被错误地配置为本地IP_Spring_Eclipse_Tomcat - Fatal编程技术网

Spring Tomcat被错误地配置为本地IP

Spring Tomcat被错误地配置为本地IP,spring,eclipse,tomcat,Spring,Eclipse,Tomcat,我有一个关于Spring和maven build的项目。(Windows上的Eclipse IDE)。当我运行我的Spring Boot应用程序时,我遇到了这个错误 *************************** APPLICATION FAILED TO START *************************** Description: The Tomcat connector configured to listen on port 8080 failed to sta

我有一个关于Spring和maven build的项目。(Windows上的Eclipse IDE)。当我运行我的Spring Boot应用程序时,我遇到了这个错误

***************************
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.
我尝试侦听另一个端口(使用application.properties文件),但错误仍然存在。 我还尝试使用这两行命令行终止我的进程

// Step 1
netstat -ano | findstr :yourPortNumber 
//Step 2
taskkill /PID typeyourPIDhere /F
我认为我的tomcat在这个项目中被错误配置了。奇怪的是,它似乎在另一个项目上工作,但在这个项目上。这怎么可能呢?提前谢谢你的帮助

编辑: 很抱歉,我忘了提到我想在电脑的IP上运行Tomcat。对于localhost来说,它工作得很好

这是我的application.properties文件:

spring.http.multipart.enabled=false
server.address=172.27.86.141
server.port=8080

显示您的配置属性请检查您的tomcat进程是否像“ps-ef | grep tomcat”一样运行,并杀死tomcat进程是否像“pkill-9 pid”我使用的是Windows而不是Linux