From f91578b00bc81b06cba83695f565837c9c331c1f Mon Sep 17 00:00:00 2001 From: changpengfei Date: Wed, 8 Sep 2021 09:11:36 +0800 Subject: [PATCH] dict json --- .../main/java/com/lyms/talkonlineweb/controller/RegionsController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java index dd15b8c..3273898 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java @@ -11,6 +11,7 @@ import com.lyms.talkonlineweb.service.RegionsService; 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.RestController; import java.util.List; @@ -54,7 +55,7 @@ public class RegionsController { * @return */ @PostMapping("saveDict") - public BaseResponse saveDict(LymsDict dict){ + public BaseResponse saveDict(@RequestBody LymsDict dict){ BaseResponse baseResponse=new BaseResponse(); boolean f=lymsDictService.save(dict); baseResponse.setErrorcode(f==true?0:1); -- 1.8.3.1