Spring Tomcat被错误地配置为本地IP
我有一个关于Spring和maven build的项目。(Windows上的Eclipse IDE)。当我运行我的Spring Boot应用程序时,我遇到了这个错误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
***************************
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