lee*_*tts 17
您可以使用resources.groovy使用您自己的扩展GrailsExceptionResolver的类来覆盖exceptionHandler bean
例如
beans = {
exceptionHandler(com.yourapp.YourExceptionHandler){
// this is required so that calls to super work
exceptionMappings = ['java.lang.Exception': '/error']
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2236 次 |
| 最近记录: |