SpringBoot startup error Unable to start web server; nested exception...

SpringBoot startup error Unable to start web server; nested exception...

When creating a SpringBoot project, the dependency is loaded, but the startup error is as follows: Unable to start web server; nested exception...

[External link picture transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the picture and upload it directly (img-tsxA69b4-1675692925979)(img/image-20230206220641790.png)]

I searched a lot on the Internet, and many answers were that the versions were inconsistent, but after careful inspection, the corresponding versions were modified, but this error was still reported, and the test was successful.

According to the self-test, it is an imported dependency problem: just comment it out or delete it

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-DTxmhv5f-1675692925981)(img/image-20230206221022320.png)]

The reason is that when the SpringBoot project was created, all the default dependencies were checked, and the dependency of the hot deployment annotation caused the startup error.

Guess you like

Origin blog.csdn.net/qq_51326491/article/details/128909335