Got it to work, however don’t take what I say as authoritive as I’ve just starting to look at vaadin.
I needed a servlet to serve resoures. I could do this using spring mvc so I did used the WebMvcConfigurer. I linked the resource images etc to prefix the url with “/resources” to let the mvc servlet serve resources from my jar classpath.
I Added the class derived from spring mvc:
@Configuration
@EnableWebMvc
public class ApplicationMvcConfigurer implements WebMvcConfigurer
{
@Override
public void addResourceHandlers (ResourceHandlerRegistry registry)
{
registry.addResourceHandler("/resources/**")
.addResourceLocations("classpath:/");
}
}
and in the LayoutRouterLayout class which extends AppLayoutRouterLayout I prefixes the src= name for img with “/resources” being download my resources