I've got a Vaadin 14 application (with Spring Boot) and want to do execute some code when the server is fully started and the frontend is compiled, up and running.
Putting the code into a @Component
in the method afterPropertiesSet()
does not work, because this is executed far before Vaadins frontend compilation.
Pulling for the login view (= http://localhost:8080/login
returns a HTTP status equal to 200
=OK) works, but this seems to be not the elegant way of doing this.
Question: what is the elegant way of waiting for Vaadin startup?