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);