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 https://www.baeldung.com/spring-boot-context-hierarchy). But I’m not able to start vaadin limited in one of the child contexts. My endgoal would be to have following routes:

myApplication.com/rest → jackson (child context 1)
myApplication.com/ui → 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:
`***************************
APPLICATION FAILED TO START


Description:

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)

Action:

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