[英]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.