2016-04-22 39 views
0

我有一個Spring引導MVC應用程序部署在jboss-eap-6.4。但JSP頁面中彈簧形式標籤沒有呈現。Spring引導MVC應用程序JSP不在jboss-eap-6.4中呈現

我在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引導MVC應用程序。

回答

0

我有確切的問題。安裝Jboss補丁jboss-eap-6.4.6-patch.zip後,問題不再發生。

修補後我不需要使用設置server.servlet-path =/*

相關問題