Что не так со spring boot 2.7.x?
Я пытаюсь перевести сервис с версии spring boot 2.6.3 на 2.7.6 (в принципе, на любую 2.7.х). Сборка проходит нормально, сервис запускается через "запуск по кнопке в IntellijIdea", но когда я пытаюсь запустить jar файл (через консоль), появляется такая ошибка:
2023-06-27 13:54:04.792 [31mWARN [0;39m --- [ main] [36mo.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext[0;39m - Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is
org.springframework.boot.web.context.MissingWebServerFactoryBeanException: No qualifying bean of type
'org.springframework.boot.web.servlet.server.ServletWebServerFactory' available:
Unable to start AnnotationConfigServletWebServerApplicationContext due to missing ServletWebServerFactory bean
***************************
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.
Вообще ничего не могу найти по этому поводу в интернете. Кто-нибудь знает, в чем дело?