Spring Boot Jersey Starter (2.7.x) App fails when running java -jar but works with mvn spring-boot:run

Viewed 23

I have a Spring Boot Jersey Starter based App which was working fine until 2.6.11 of SpringBoot.

From 2.7.0 I have noticed that mvn spring-boot:run works fine but java -jar target/my_jar fails with this exception

***************************
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.

I read the release notes and wasn't helpful. Any pointers?

0 Answers
Related