@RequestBody注释无法在Websphere Application Server上运行

时间:2015-01-28 04:53:05

标签: spring spring-mvc websphere-8

我正在尝试在我的一个控制器方法中使用@RequestBody注释:

@Auditable(application = AuditApplication.DEP_TRXN, actionCategory = AuditActionCategory.READ_RESPONSE, actionDetail = "Viewed a tracking group.", event = AuditEventType.ACTION)
@RequestMapping(value = "groupView", method = RequestMethod.POST, produces = "application/json")
public @ResponseBody
String ajaxGroupView(@RequestBody String payload, final HttpServletRequest request) throws TrackingServiceException, JsonGenerationException, JsonMappingException,
        IOException
{

    String requestBody = java.net.URLDecoder.decode(payload, "UTF-8");
    return requestBody;
}

当我在Jetty服务器上运行此代码时,我的'payload'获取post数据,但是当我在Websphere Application Server -8上运行相同的代码时,有效负载为'null'。我有mvc注释驱动开启。如何使此代码在Websphere Application Server上运行?

谢谢!

0 个答案:

没有答案