| | |
| | | package com.oying.config.webConfig; |
| | | |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.web.socket.server.standard.ServerEndpointExporter; |
| | | |
| | | /** |
| | | * @author Z |
| | | * @date 2019-08-24 15:44 |
| | | */ |
| | | @Configuration |
| | | public class WebSocketConfig { |
| | | |
| | | @Bean |
| | | public ServerEndpointExporter serverEndpointExporter() { |
| | | return new ServerEndpointExporter(); |
| | | } |
| | | } |
| | | //package com.oying.config.webConfig; |
| | | // |
| | | //import org.springframework.context.annotation.Bean; |
| | | //import org.springframework.context.annotation.Configuration; |
| | | //import org.springframework.web.socket.server.standard.ServerEndpointExporter; |
| | | // |
| | | ///** 打war包注释 |
| | | // * @author Z |
| | | // * @date 2019-08-24 15:44 |
| | | // */ |
| | | //@Configuration |
| | | //public class WebSocketConfig { |
| | | // |
| | | // @Bean |
| | | // public ServerEndpointExporter serverEndpointExporter() { |
| | | // return new ServerEndpointExporter(); |
| | | // } |
| | | //} |