From 87a5b5228204d85e8e3cba41261dc3d2f5cc359f Mon Sep 17 00:00:00 2001 From: changpengfei Date: Wed, 15 Sep 2021 13:50:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=B6=88=E6=81=AF=E6=8E=A5?= =?UTF-8?q?=E5=8F=97json=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lyms/talkonlineweb/controller/ChatGroupController.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java index 6f314e7..c823dec 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ChatGroupController.java @@ -10,10 +10,7 @@ import com.lyms.talkonlineweb.util.HXService; import lombok.extern.log4j.Log4j2; import org.springframework.beans.BeanUtils; 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.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.util.*; @@ -81,7 +78,7 @@ public class ChatGroupController { * @return */ @PostMapping("saveMsg") - public BaseResponse saveMsg(LymsMessage message) { + public BaseResponse saveMsg(@RequestBody LymsMessage message) { BaseResponse baseResponse = new BaseResponse(); message.setSendtime(new Date()); boolean f = lymsMessageService.saveOrUpdate(message); -- 1.8.3.1