Enable Actuator Endpoints in Vaadin 10 bakery app


Hello,
I would like to enable spring-actuator endpoints for the vaadin 10 bakery app,
like for example:
localhost:8080/health

For the vaadin 8 bakery app I was successful with the following changes:

pom.xml:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

application.properties:

management.security.enabled=false

Unfortunately, this is not working for the vaadin 10 bakery app.
The Vaadin Servlet seems to handle all URL’s and responds
with a “404”. Do you know a way to tell the Vaadin Servlet
to exclude certain URL’s?

I found a working solution. Setting the path of the dispatcher servlet to

server.servlet-path=/somepath

results in a working URL

localhost:8080/somepath/health