报错:Web server failed to start. Port 8080 was already in use.
报错原因:端口被占用解决方法一:修改端口修改配置文件server:port:新端口号解决方法二:关闭占用端口的进程Windows:1,查看端口号占用情况,查看进程号:netstat-ano|findstr端口号2,关闭该进程:taskkill-PID进程号-FMac:1,控制台输入指令,查看被占用进程的pid:sudolsof-i:端口号2,杀死进程:sudokill-9pid