From 725e08d8e73cd6d5b762b29b5224182e417bfa19 Mon Sep 17 00:00:00 2001 From: tanghc Date: Wed, 9 Sep 2020 10:55:16 +0800 Subject: [PATCH] 4.0.3 --- .../storyweb/controller/Example1001_BaseController.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sop-example/sop-story/src/main/java/com/gitee/sop/storyweb/controller/Example1001_BaseController.java b/sop-example/sop-story/src/main/java/com/gitee/sop/storyweb/controller/Example1001_BaseController.java index e056c99e..b2eb6e2c 100644 --- a/sop-example/sop-story/src/main/java/com/gitee/sop/storyweb/controller/Example1001_BaseController.java +++ b/sop-example/sop-story/src/main/java/com/gitee/sop/storyweb/controller/Example1001_BaseController.java @@ -12,9 +12,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; 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.RequestMethod; import org.springframework.web.bind.annotation.RestController; import java.nio.charset.StandardCharsets; @@ -85,10 +83,9 @@ public class Example1001_BaseController { // 忽略验证 @ApiOperation(value = "忽略签名验证", notes = "忽略签名验证") @Open(value = "story.get.ignore", ignoreValidate = true) - @RequestMapping(value = "/get/ignore/v1", method = {RequestMethod.GET, RequestMethod.POST}) - public StoryResult getStory21(@RequestBody StoryParam story) { + @RequestMapping("/get/ignore/v1") + public StoryResult getStory21(StoryParam story) { StoryResult result = new StoryResult(); - result.setId((long) story.getId()); result.setName(story.getName() + ", ignoreValidate = true"); return result; }