public abstract class WebController extends Object implements ExceptionController, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| 构造器和说明 |
|---|
WebController() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
exceptionHandler(Exception e)
异常时返回错误页面
|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
获取controller注解中的异常时返回的页面路径
|
public Object exceptionHandler(Exception e)
exceptionHandler 在接口中 ExceptionControllere - 捕获异常public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>Copyright © 2018 Pivotal Software, Inc.. All rights reserved.