I'm using Spring Boot with Vaadin and. By using the @Autowired
SpringNavigator
, I have also set the error view:
navigator.setErrorView(ErrorView.class);
But when I type wrong URL like http://localhost:8080/asdf . I always get the Spring Boot's Whitelabel error page. I know that I can set custom HTML page for the error like
/resources/public/error/404.html
but this is HTML way, I would like to use Vaadin with components, the best solution would be the mentioned error view.