在 Play Framework 中创建自定义的 404/500 错误页面 [英] Creating a customized 404/500 error page in Play Framework

查看:25
本文介绍了在 Play Framework 中创建自定义的 404/500 错误页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 Play 为其 404/505 错误页面创建全局自定义外观?

How can one create global, custom looks for their 404/505 error pages using Play?

推荐答案

在 Play Framework 1 中,您只需修改提供的 app/views/errors/404.htmlapp/views/errors/500.html .

In Play Framework 1, you simply have to modify the provided app/views/errors/404.html and app/views/errors/500.html .

这篇关于在 Play Framework 中创建自定义的 404/500 错误页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆