项目中使用wildfly,使用post请求提交数据,进入controller正常,返回时前台405,后台日志
[java.util.ArrayList.
, io.undertow.servlet.spec.HttpServletResponseImpl.getHeaders(HttpServletResponseImpl.java:248)
, org.springframework.http.server.ServletServerHttpResponse$ServletResponseHttpHeaders.get(ServletServerHttpResponse.java:160)
, org.springframework.http.server.ServletServerHttpResponse$ServletResponseHttpHeaders.containsKey(ServletServerHttpResponse.java:142)
, org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.addContentDispositionHeader(AbstractMessageConverterMethodProcessor.java:349)
, org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:237)
, org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:153)
, org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:165)
, org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:80)
, org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:126)
, org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:817)
, org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:731)
, org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
, org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
, org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
, org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
, org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:870)
, javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
, org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
, javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
, io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
, io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)
, org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
, org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
, io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
, io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
, io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)
, io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
, io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
, org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
, io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
, io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
, io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
, io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
, io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
, io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
, io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
, io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
, io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
, io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
, org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
, io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
, io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
, io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
, io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
, io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
, io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
, io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
, io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
, java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
, java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
原因是wildfly8.1的bug,使用wildfly8.2解决