Springboot cannot be started without an error report. The detailed error report is as follows:
A large number of tutorials have been searched on the Internet. Some say that the idea version is inconsistent with maven, and some say that the port number is occupied, and the port number needs to be turned off. I tried it but it didn’t work, and then I tried Baidu: “springboot doesn’t report an error and can’t get up”, found an article and jumped to → , when it comes to catching the exception, you can check the cause of the error. The error reported after the capture is shown in the figure below :
So I searched for the cause of this type of error again. Most of them said that the springboot and cloud versions were inconsistent, but mine was consistent. After a long time of tossing, many methods did not work. I once wondered if my computer was broken.
Inadvertently, I went back to check the yml configuration, and found that the port number had been typed with an extra number at some point, and the port number was configured as75001
Baidu found that the port number range is 0~65535
The port number in the configuration has exceeded the port number range, which is the cause of the problem
Summary: The port number in the yml configuration should be configured carefully, and do not exceed the range value! ! !