如何手动抛出404
or 500
Play 框架 1.2.x 中出现错误?
我目前正在渲染404.html
and 500.html
模板使用renderTemplate()
方法。但我该如何以正确的方式做到这一点呢?
Play Controller http://www.playframework.org/documentation/api/1.2.3/play/mvc/Controller.html has error()
and notFound()
用于此目的的方法。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)