尝试使用管理控制台将Spring 3.1.2(servlet 3.0)WAR安装到WebSphere 8.5 beta时,出现以下错误:
[2012/11/08 10:19:32:585 CAT] 00000021 srt E com.ibm.ws.webcontainer.srt.SRTServletRequest parseParameters SRVE0133E: An error occurred while parsing parameters. {0}
java.lang.UnsupportedOperationException: SRVE8020E: Servlet does not accept multipart requests
我已将DispatcherServlet配置为处理多部分请求(即使我不需要支持,但WebSphere 8.x似乎需要这个,请参阅下面的JIRA)。
<servlet>
<servlet-name>appServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<multipart-config>
<max-file-size>10000000</max-file-size>
</multipart-config>
</servlet>
<servlet-mapping>
<servlet-name>appServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
不幸的是,Spring JIRA https://jira.springsource.org/browse/SPR-9191只是暗示这个web.xml配置或Spring Java配置注释@MultipartConfig应该有用。
在WebSphere 7(servlet 2.5)或WebSphere 8.0(servlet 3.0)上不会发生此问题。我能够使用WebSphere 8,但是有关它在8.5 beta中不起作用的任何信息都会很好。
答案 0 :(得分:0)
检查<div class="row">
<div class="col-6 col-sm">
<div class="flip-card card" ontouchstart="this.classList.toggle('hover');">
<div class="flip-card-inner">
<div class="flip-card-inner-front" style="background-image: url('images/logobgs/merc200.jpg')"></div>
<div class="flip-card-inner-back" style="background-image: url('images/logobgs/logobg.jpg')"><img class="img-fluid" src="images/logos/merc.png" width="70" height="70"><br><button class="bg-warning"><small>View Mercedes Cars</small></button></div>
</div>
</div></div>
中的架构版本,它应该至少为3.0