Obviously, the above prompt shows that the port 8080 has been occupied, so it is enough to kill the process that occupies the port. The following question is how to know which process occupies the port number. Google get the followingArticle: Http://www.cnblogs.com/yanchaochao/archive/2009/03/30/netstat.html. Note:
To view all the connection and listening ports, you can add the-a parameter to display the process ID of each connection. You can add the-O parameter. After the process ID is found, you can find the PID process in the Process Manager of windows. By default, the Process Manager of Windows does not display the PID, you can choose [view]> [Select column] to view the PID. Then, the PID is displayed in the process viewer.
Obviously, in this way, you only need to find the process that occupies the port number, kill it, and the error disappears.