diff --git a/src/main/java/com/github/binarywang/demo/wechat/controller/WechatController.java b/src/main/java/com/github/binarywang/demo/wechat/controller/WechatController.java index abd55b3..d658a1e 100644 --- a/src/main/java/com/github/binarywang/demo/wechat/controller/WechatController.java +++ b/src/main/java/com/github/binarywang/demo/wechat/controller/WechatController.java @@ -6,7 +6,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; @@ -31,7 +30,6 @@ public class WechatController { @Autowired private WxMpMessageRouter router; - @ResponseBody @GetMapping(produces = "text/plain;charset=utf-8") public String authGet( @RequestParam(name = "signature", @@ -55,7 +53,6 @@ public String authGet( return "非法请求"; } - @ResponseBody @PostMapping(produces = "application/xml; charset=UTF-8") public String post(@RequestBody String requestBody, @RequestParam("signature") String signature,