[英]Spring boot MVC application JSPs not rendering in jboss-eap-6.4
我在jboss-eap-6.4
部署了一个Spring Boot MVC应用程序,但是带有Spring Form标签的JSP页面无法呈现。
我在application.properties文件中添加了以下几行
server.servlet-path=/*
spring.view.prefix=/WEB-INF/jsp/
spring.view.suffix=.jsp
能够使用url模式命中控制器,但是当我尝试从控制器重定向jsp时遇到错误。
ERROR [org.springframework.boot.context.web.ErrorPageFilter]
(http-/127.0.0.1:8080-1) Cannot forward to error page for request [/login]
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
请让我知道jboss-eap-6.4
支持带有JSP的Spring boot MVC应用程序。
我有确切的问题。 安装Jboss补丁jboss-eap-6.4.6-patch.zip之后,不再出现此问题。
修补后,我不需要使用设置server.servlet-path = / *
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.