Tag: tomcat8

ErrorPageFilter – 无法转发到错误页面的请求

我经常在运行的服务器上看到这样的错误日志: 错误osboot.web.support.ErrorPageFilter – 由于响应已经提交,无法转发到请求[/ api / login]的错误页面。 因此,响应可能有错误的状态码。 如果您的应用程序在WebSphere Application Server上运行,则可以通过将com.ibm.ws.webcontainer.invokeFlushAfterService设置为false来解决此问题 我的服务器运行和开发环境: Ubuntu 14.04 Tomcat 8 Sprint Framework: 4.3.1 Sprint Boot: 1.5.9 Kotlin: 1.2.21 根据stackoverflow中的一个问题 ,我添加了下面的代码(转换为Kotlin代码)尝试删除此错误日志,但不起作用。 @SpringBootApplication @EnableScheduling @EnableAsync @EnableTransactionManagement open class MyApplication: SpringBootServletInitializer() { init { setRegisterErrorPageFilter(false) <<<< I added this func call to try fix } companion object { @JvmStatic fun main(args: Array) […]