简体   繁体   English

Spring Boot MVC应用程序JSP无法在jboss-eap-6.4中呈现

[英]Spring boot MVC application JSPs not rendering in jboss-eap-6.4

I have a Spring boot MVC application deployed in jboss-eap-6.4 .But JSP page with spring form tags not rendering. 我在jboss-eap-6.4部署了一个Spring Boot MVC应用程序,但是带有Spring Form标签的JSP页面无法呈现。

I have added below lines in application.properties file 我在application.properties文件中添加了以下几行

server.servlet-path=/*
spring.view.prefix=/WEB-INF/jsp/
spring.view.suffix=.jsp

Able to hit the controller using url pattern but getting below error when I try to redirect jsp from controller. 能够使用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

Please let me know if jboss-eap-6.4 support Spring boot MVC application with JSP. 请让我知道jboss-eap-6.4支持带有JSP的Spring boot MVC应用程序。

I had the exact problem. 我有确切的问题。 After installing the Jboss patch jboss-eap-6.4.6-patch.zip the problem does not occur anymore. 安装Jboss补丁jboss-eap-6.4.6-patch.zip之后,不再出现此问题。

After patching I did not need to use the setting server.servlet-path=/* 修补后,我不需要使用设置server.servlet-path = / *

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM