commit: 添加罗库版本
This commit is contained in:
parent
d6c9089e00
commit
9578e2ee1f
|
@ -50,6 +50,7 @@
|
||||||
<groupId>com.rax</groupId>
|
<groupId>com.rax</groupId>
|
||||||
<artifactId>common-log</artifactId>
|
<artifactId>common-log</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!--日常计划模块-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.rax</groupId>
|
<groupId>com.rax</groupId>
|
||||||
<artifactId>daily-plan</artifactId>
|
<artifactId>daily-plan</artifactId>
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
package com.rax.vital.v1.config;
|
package com.rax.vital.v1.config;
|
||||||
|
|
||||||
import com.rax.vital.v1.handler.AddMedicineHandler;
|
|
||||||
import com.rax.vital.v1.handler.ChatHandler;
|
import com.rax.vital.v1.handler.ChatHandler;
|
||||||
import com.rax.vital.v1.handler.MachineFeedbackHandler;
|
|
||||||
import com.rax.vital.v1.handler.MedicineHandler;
|
import com.rax.vital.v1.handler.MedicineHandler;
|
||||||
import com.rax.vital.v1.interceptor.WebSocketInterceptors;
|
import com.rax.vital.v1.interceptor.WebSocketInterceptors;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.web.socket.WebSocketHandler;
|
import org.springframework.web.socket.WebSocketHandler;
|
||||||
import org.springframework.web.socket.config.annotation.EnableWebSocket;
|
import org.springframework.web.socket.config.annotation.EnableWebSocket;
|
||||||
import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
|
|
||||||
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
|
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
|
||||||
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
|
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
|
||||||
import org.springframework.web.socket.server.HandshakeInterceptor;
|
import org.springframework.web.socket.server.HandshakeInterceptor;
|
||||||
import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor;
|
|
||||||
|
|
||||||
@EnableWebSocket
|
@EnableWebSocket
|
||||||
@Configuration
|
@Configuration
|
||||||
|
|
|
@ -263,7 +263,7 @@ public class ChatHandler implements WebSocketHandler {
|
||||||
// JSONObject param = new JSONObject();
|
// JSONObject param = new JSONObject();
|
||||||
// param.put("history", history);
|
// param.put("history", history);
|
||||||
// param.put("msgType", "msg");
|
// param.put("msgType", "msg");
|
||||||
//// session.sendMessage(new TextMessage(param.toJSONString().getBytes()));
|
// session.sendMessage(new TextMessage(param.toJSONString().getBytes()));
|
||||||
// for (WebSocketSession webSocketSession : webSocketSessionList) {
|
// for (WebSocketSession webSocketSession : webSocketSessionList) {
|
||||||
// webSocketSession.sendMessage(new TextMessage(param.toJSONString().getBytes()));
|
// webSocketSession.sendMessage(new TextMessage(param.toJSONString().getBytes()));
|
||||||
// }
|
// }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user