SpringCloud启动不了,报错

  • 初学SpringBootCloud启动遇到以下报错
***************************
APPLICATION FAILED TO START
***************************

Description:

Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context.

Action:

Check your application's dependencies for a supported servlet web server.
Check the configured web application type.
  • 日志信息INFO没有彩色显示
    e11491ec3bfbb1804f8ec3523975299.png

解决方法:

启动类上加注解

@SpringBootApplication
  • 新手易犯的错误

image.png

  • 不出现服务窗口:alt+8

image.png

posted @ 2023-06-11 16:18  VCCICCV  阅读(2813)  评论(0编辑  收藏  举报