From 793687e640e20c3b6ef350bde5505829787952cc Mon Sep 17 00:00:00 2001 From: Zhengjiaao Date: Mon, 28 Nov 2022 13:08:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(*)=20=E6=81=A2=E5=A4=8D=E8=AF=AF=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- starter-validation/README.md | 2 +- .../src/main/resources/templates/stomp-v1.html | 2 +- .../src/main/resources/templates/stomp-v2.html | 2 +- .../src/main/resources/templates/stomp/stomp-v1.html | 2 +- .../src/main/resources/static/stompwebsocket/test-stomp.html | 2 +- .../src/main/resources/static/stompwebsocket/websocket.jsp | 2 +- .../src/main/resources/templates/stomp/stomp-v1.html | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/starter-validation/README.md b/starter-validation/README.md index 7776a85..d96ae3d 100644 --- a/starter-validation/README.md +++ b/starter-validation/README.md @@ -100,7 +100,7 @@ private Product product; @PostMapping(value = "create") @ResponseBody -public R createUserForm(@Valid User primaryEntity,BindingResult bindingResult){ +public R createUserForm(@Valid User user,BindingResult bindingResult){ if(bindingResult.hasErrors()){ //获取错误信息,返回json return R.error("请求失败,请重试!"); diff --git a/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp-v1.html b/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp-v1.html index b36e213..9d45c70 100644 --- a/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp-v1.html +++ b/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp-v1.html @@ -73,7 +73,7 @@ // subscribe.unsubscribe(); //订阅消息 另外再注册一下定时任务接受 - stompClient.subscribe('/primaryEntity/123/msg', function (response) { + stompClient.subscribe('/user/123/msg', function (response) { showCallback(response.body); }); diff --git a/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp-v2.html b/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp-v2.html index b36e213..9d45c70 100644 --- a/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp-v2.html +++ b/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp-v2.html @@ -73,7 +73,7 @@ // subscribe.unsubscribe(); //订阅消息 另外再注册一下定时任务接受 - stompClient.subscribe('/primaryEntity/123/msg', function (response) { + stompClient.subscribe('/user/123/msg', function (response) { showCallback(response.body); }); diff --git a/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp/stomp-v1.html b/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp/stomp-v1.html index 4b0cf27..c60b287 100644 --- a/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp/stomp-v1.html +++ b/starter-websocket/starter-websocket-stomp/src/main/resources/templates/stomp/stomp-v1.html @@ -44,7 +44,7 @@ showResponse(JSON.parse(response.body).responseMessage); }); // 另外再注册一下定时任务接受 - stompClient.subscribe('/primaryEntity/123/msg', function (response) { + stompClient.subscribe('/user/123/msg', function (response) { showCallback(response.body); }); }); diff --git a/starter-websocket/starter-websocket-tio/src/main/resources/static/stompwebsocket/test-stomp.html b/starter-websocket/starter-websocket-tio/src/main/resources/static/stompwebsocket/test-stomp.html index 97cd96d..3fa4a39 100644 --- a/starter-websocket/starter-websocket-tio/src/main/resources/static/stompwebsocket/test-stomp.html +++ b/starter-websocket/starter-websocket-tio/src/main/resources/static/stompwebsocket/test-stomp.html @@ -48,7 +48,7 @@ showResponse(JSON.parse(response.body).responseMessage); }); // 另外再注册一下定时任务接受 - stompClient.subscribe('/primaryEntity/123/msg', function (response) { + stompClient.subscribe('/user/123/msg', function (response) { showCallback(response.body); }); }); diff --git a/starter-websocket/starter-websocket-tio/src/main/resources/static/stompwebsocket/websocket.jsp b/starter-websocket/starter-websocket-tio/src/main/resources/static/stompwebsocket/websocket.jsp index a9157d0..7269442 100644 --- a/starter-websocket/starter-websocket-tio/src/main/resources/static/stompwebsocket/websocket.jsp +++ b/starter-websocket/starter-websocket-tio/src/main/resources/static/stompwebsocket/websocket.jsp @@ -32,7 +32,7 @@ showGreeting(JSON.parse(greeting.body).content); }); - stompClient.subscribe('/primaryEntity/' + userid + '/message',function(greeting){ + stompClient.subscribe('/user/' + userid + '/message',function(greeting){ alert(JSON.parse(greeting.body).content); showGreeting(JSON.parse(greeting.body).content); }); diff --git a/starter-websocket/starter-websocket-tio/src/main/resources/templates/stomp/stomp-v1.html b/starter-websocket/starter-websocket-tio/src/main/resources/templates/stomp/stomp-v1.html index 4b0cf27..c60b287 100644 --- a/starter-websocket/starter-websocket-tio/src/main/resources/templates/stomp/stomp-v1.html +++ b/starter-websocket/starter-websocket-tio/src/main/resources/templates/stomp/stomp-v1.html @@ -44,7 +44,7 @@ showResponse(JSON.parse(response.body).responseMessage); }); // 另外再注册一下定时任务接受 - stompClient.subscribe('/primaryEntity/123/msg', function (response) { + stompClient.subscribe('/user/123/msg', function (response) { showCallback(response.body); }); });