Modify the current project port number when the java springboot 8080 port number conflicts

Background: An error is reported when the springboot project starts: Web server failed to start. Port 8080 was already in use.
An error is reported when the springboot project starts: Web server failed to start. Port 8080 was already in use.
Reason for the error: The port is occupied.

solution

Modify the project application.properties configuration file, the file path is as follows

springboot\src\main\resources\application.properties

Insert in the application.properties configuration file

//8014是要修改未被占用的端口号
server.port = 8014

An error is reported when the springboot project starts: Web server failed to start. Port 8080 was already in use.
Just restart the project

Guess you like

Origin blog.csdn.net/gjwgjw1111/article/details/131064605