Startup Vaadin in a Spring Boot child context

I have a spring boot application in which I would like to use vaadin as frontend. The same spring boot application should offer a jersey REST endpoint. I’ve tried to create several servlet contexts (as described in this article But I’m not able to start vaadin limited in one of the child contexts. My endgoal would be to have following routes: → jackson (child context 1) → vaadin (child context 2)

How can I achieve this setup with one spring boot application only?

I’m using the gradle com.vaadin:vaadin-spring-boot-starter dependency with version 14.0.9 in the compatibility mode (vaadin.compatibilityMode=true).

when starting the application, I get this error:


Field context in com.vaadin.flow.spring.SpringBootAutoConfiguration required a bean of type ‘org.springframework.web.context.WebApplicationContext’ that could not be found.

The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)


Consider defining a bean of type ‘org.springframework.web.context.WebApplicationContext’ in your configuration.`