springboot does not report any errors and cannot start Disconnected from the target VM

Springboot cannot be started without an error report. The detailed error report is as follows:
springboot cannot start, error details
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 :
insert image description here
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
insert image description here
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! ! !

Guess you like

Origin blog.csdn.net/qq_45699990/article/details/129206405