Is it possible to skip vaadin initialization (FlowUI 2.0.2)

Hello, I’m mainly working on some REST logic and from a quick investigation it seems as though the vaadin initialization (VaadinServletContextInitializer) takes the longest to startup - and I don’t need it right now. Is it possible to disable it, so I can speed up my development cycles?

Hi,

the only suggestion is to provide a custom VaadinServletContextInitializer implementation and enable it for a Spring profile.

@Profile("test")
@Bean
@Primary
public VaadinServletContextInitializer customVaadinServletContextInitializer(ApplicationContext applicationContext) {
    return new CustomVaadinServletContextInitializer(applicationContext);
}

Gleb

Thanks, I will try that.