Skip to content

Commit

Permalink
fix(*) 恢复误操作
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhengjiaao committed Nov 28, 2022
1 parent 7d68aaa commit 793687e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion starter-validation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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("请求失败,请重试!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
// subscribe.unsubscribe();

//订阅消息 另外再注册一下定时任务接受
stompClient.subscribe('/primaryEntity/123/msg', function (response) {
stompClient.subscribe('/user/123/msg', function (response) {
showCallback(response.body);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
// subscribe.unsubscribe();

//订阅消息 另外再注册一下定时任务接受
stompClient.subscribe('/primaryEntity/123/msg', function (response) {
stompClient.subscribe('/user/123/msg', function (response) {
showCallback(response.body);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 793687e

Please sign in to comment.