Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-07-16 00:43:31.523 ERROR 22000 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
时间: 2023-07-23 18:08:48 浏览: 168
It seems that the web server failed to start because port 8080 is already in use. To resolve this issue, you have two options:
1. Identify and stop the process that is currently using port 8080. You can use the following command in the terminal to find the process ID (PID) using port 8080:
```
lsof -i :8080
```
Once you have the PID, you can use the following command to kill the process:
```
kill <PID>
```
2. Configure your application to listen on a different port that is not in use. You can do this by modifying the configuration file or by setting the `server.port` property in your application's properties file. For example, you can set it to `server.port=9090` to make your application listen on port 9090 instead of 8080.
After making these changes, you should be able to start the web server without any issues.
阅读全文