ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is org.springframework.boot.web.server.PortInUseException: Port 8002 is already in use
本地起服务,端口被占用了
解决:
win + R cmd
1 netstat -ano | findstr 8080 查看被占用的端口号
2 taskkill -pid 32128 -f 杀死端口号
linux 環境
netstat -tunlp|grep 8118
kill -9