您只需要将WebRequest作为参数注入到控制器的POST方法中,然后使用Mailchimp Webhook中的给定参数要求getParameter()。
例如:
@RequestMapping(path="/MyUrl", method=RequestMethod.POST)public ModelAndView process(WebRequest request){ System.out.println(request.getParameter("type")); System.out.println(request.getParameter("data[merges][EMAIL]")); return new ModelAndView([YOURVIEWHERe]);}就这样…
问候。



