'2019/04/05'에 해당되는 글 2건
2017-01-06 18:28:23.933 ERROR 80102 --- [nio-8088-exec-6]
o.s.boot.web.support.ErrorPageFilter : Cannot forward to error page for
request [/strategy/list/] as the response has already been committed. As a
result, the response may have the wrong status code. If your application is
running on WebSphere Application Server you may be able to resolve this
problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
--------------------------------------------
public MainApplication(){
super();
setRegisterErrorPageFilter(false);
}
----------------------------------------------
@Bean public ErrorPageFilter errorPageFilter() {
return new ErrorPageFilter();
}
@Bean
public FilterRegistrationBean disableSpringBootErrorFilter(ErrorPageFilter filter) {
FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
filterRegistrationBean.setFilter(filter);
filterRegistrationBean.setEnabled(false);
return filterRegistrationBean;
}