| | |
| | | package com.moral.config; |
| | | |
| | | import com.moral.service.DeviceService; |
| | | import com.moral.webSocketServer.WebSocketServer; |
| | | |
| | | import com.moral.webSocketServer.WebSocketServerNew; |
| | | import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter; |
| | | import org.springframework.amqp.support.converter.MessageConverter; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.web.socket.server.standard.ServerEndpointExporter; |
| | |
| | | return new Jackson2JsonMessageConverter(); |
| | | } |
| | | |
| | | @Autowired |
| | | public void setMessageService(DeviceService deviceService){ |
| | | WebSocketServer.deviceService=deviceService; |
| | | WebSocketServerNew.deviceService=deviceService; |
| | | } |
| | | |
| | | } |