首先打开cmd,输入
netstat -ano | findstr 8080
cmd出现占用的端口的pid,比如2432
那么就kill掉这个pid
taskkill -pid 2432 -f
大功告成