springboot 遇到的一个问题和解决

今天调试的时候遇到这样一个问题:

 

2019-01-12 17:21:36.735 [http-bio-8061-exec-10] ERROR o.springframework.boot.web.support.ErrorPageFilter - Cannot forward to error page for request [/indexOne] 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

昨天代码还好好的,今天就出问题了,真奇怪,查了好久,最后发现是 pom设置昨晚改了,今天没有留意,


   src/main/resources
   
   

把这里的注释打开,就出现上面的错误,把这段代码去掉,就解决了。

你可能感兴趣的:(springboot 遇到的一个问题和解决)