Skip to content

Commit

Permalink
remove redundant @responsebody
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Mar 6, 2017
1 parent c922d3f commit 2e18817
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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",
Expand All @@ -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,
Expand Down

0 comments on commit 2e18817

Please sign in to comment.