[微信小程序]怎么接收component_verify_ticket并解密 [什么怎么接收?]

我用的springboot,目前能收到推送,但是会报错

        /**

     * 微信推送ticket

     */

     @PostMapping(value = "ticket", consumes = { MediaType.APPLICATION_XML_VALUE }, 

     produces = MediaType.APPLICATION_XML_VALUE)

     public void getTicket(@RequestBody Map<String,Object> params) throws Exception{

     System.out.println(params);

     }

2019-02-28 18:05:44.786  WARN 16428 --- [nio-8086-exec-7] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'text/xml' not supported]

想请教下应该怎么接收信息并解密