Failed to start registry
Error message
org.springframework.context.ApplicationContextException:
Unable to start web server;
nested exception is org.springframework.context.
ApplicationContextException:
Unable to start
ServletWebServerApplicationContext due to missing
ServletWebServerFactory bean.
The reason for the error
I forgot to write the comment to enable Eureka for a while
Add @EnableEurekaServer to the startup and restart successfully
Note: This is purely a reminder of carelessness