JAVA-错误Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.

时间:2021-06-03 16:44:34

运行java程序的时候显示如下错误:

JAVA-错误Several ports (8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.

问题原因:导致这个错误的原因是因为已经启动了一个tomcat服务器

解决办法:到任务管理器中显示所有用户进程,将tomcat服务进程关闭,重新运行java程序就可以了