【问题标题】:Vaadin 7 + Spring Boot error pageVaadin 7 + Spring Boot 错误页面
【发布时间】:2016-05-23 07:58:54
【问题描述】:

我已经集成了 Vaadin 7 和 Spring Boot。现在我需要实现错误视图以替换标准页面,例如:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon May 23 10:50:20 EEST 2016
There was an unexpected error (type=Forbidden, status=403).
Access is denied

它应该作为独立的 Vaadin UI 实现还是以其他方式实现?您能否向我提供此类页面的实现?谢谢。

【问题讨论】:

标签: spring spring-boot vaadin vaadin7


【解决方案1】:

我也使用 spring-boot 和 vaadin 并没有什么特别之处。您可以在此处查看可能的配置:http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-developing-web-applications.html

所以你可以配置一个@ControllerAdvice 来做这个技巧!

希望对您有所帮助! :)

问候

【讨论】:

    猜你喜欢
    • 2017-06-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-10
    • 2018-06-09
    • 2018-04-19
    • 2017-10-06
    相关资源
    最近更新 更多