카테고리 없음2019. 4. 5. 08:50
반응형

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;
}

Posted by 1010