参考博客:
https://blog.csdn.net/yiyihuazi/article/details/82937399
报错上如图
解决办法:
第一种:关掉Tomcat,关掉eclipse,然后重启,重新部署项目
如果还是不行,那就是和我一样
第二种:
1. 首先打开你的cmd命令(电脑按住Win+R键,输入cmd,回车),然后在dos命令窗口中里敲
netstat -ano|findstr 8888或8080
netstat -ano|findstr 8888或8080
(哪个端口被占用,就输入哪个端口号,看我的截图是8888端口号,有些是设置8005端口号)
2. 在资源管理器(Ctrl+alt+delete键)中找到PID码为10884的进程,结束进程。
在下面这个页面找到pid对应进程,结束其进程
然后再启动Tomcat,就可以啦!