|
@@ -32,10 +32,10 @@ public class WebSocketTestController {
|
|
|
// 连接 数据解析服务器
|
|
|
@RequestMapping({"start.do"})
|
|
|
@ResponseBody
|
|
|
- public String star() {
|
|
|
+ public String star(String key) {
|
|
|
try {
|
|
|
// String url = PropertiesUtil.getProperty("ws.url")+ UUID.randomUUID().toString().replace("-","");
|
|
|
- String url = PropertiesUtil.getProperty("ws.url")+ "zxdata987654+";
|
|
|
+ String url = PropertiesUtil.getProperty("ws.url")+key;
|
|
|
WsClient.getInstance(initStockListService);
|
|
|
WsClient myClient = new WsClient(new URI(url));
|
|
|
myClient.connect();
|