Commit 781cca45 authored by xinglei's avatar xinglei

修改项目报错

parent 2b96e258
......@@ -41,11 +41,6 @@
<artifactId>amos-component-feign</artifactId>
<version>1.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.typroject</groupId>
<artifactId>tyboot-core-foundation</artifactId>
<version>1.1.13-Ty</version>
</dependency>
<!-- fegion客户端引用end -->
<!-- 安全模块jar
<dependency>
......
......@@ -250,7 +250,6 @@ public class ShiduAlarmWebSocketClient extends WebSocketClient {
ShiduAlarmWebSocketClient client = new ShiduAlarmWebSocketClient(monitorAlarmWebSocketClientUrl);
client.connect();
while (!client.getReadyState().equals(WebSocket.READYSTATE.OPEN)) {
System.out.println("connecting... shidu Dynamic ring alarm----" + client.getReadyState());
}
System.out.println("build " + monitorAlarmWebSocketClientUrl + "connected...");
......
......@@ -30,7 +30,6 @@ import com.yeejoin.amos.bank.webSocket.ShiduAlarmWebSocketClient;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
*
* <pre>
* 服务启动类
* </pre>
......@@ -52,53 +51,46 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
// @EnableApolloConfig
@EnableJpaAuditing
@EnableScheduling
@MapperScan(basePackages = { "com.yeejoin.amos.spc.business.dao.mapper","com.yeejoin.amos.bank.dao.mapper" })
@ComponentScan({"org.typroject","com.yeejoin.amos","com.yeejoin.amos.bank"})
public class AmosBankStart
{
@MapperScan(basePackages = {"com.yeejoin.amos.spc.business.dao.mapper", "com.yeejoin.amos.bank.dao.mapper"})
@ComponentScan({"org.typroject", "com.yeejoin.amos", "com.yeejoin.amos.bank"})
public class AmosBankStart {
private static final Logger log = Logger.getLogger(AmosBankStart.class);
private static final Logger log = Logger.getLogger(AmosBankStart.class);
/**
* 启动amosop-server
*
* @param args
* @throws IOException
* @throws URISyntaxException
*/
public static void main(String[] args)
{
log.info("start xian bank Service..........");
try
{
SpringApplication application = new SpringApplication(AmosBankStart.class);
ConfigurableApplicationContext run = application.run(args);
//websocketClinet 设置application
AlarmWebSocketClient.setAllpicationContext(run);
MonitorAlarmWebSocketClient.setAllpicationContext(run);
ShiduAlarmWebSocketClient.setAllpicationContext(run);
InspectionWebSocketClient.setAllpicationContext(run);
FireDetectionWebSocketClient.setAllpicationContext(run);
Environment environment = run.getEnvironment();
log.info("SwaggerUI: http://localhost:"
+ environment.getProperty("server.port") + "/swagger-ui.html");
log.info("动环告警websocket监听");
MonitorAlarmWebSocketClient.synMonitorAlarmPoint();
log.info("湿度告警websocket监听");
ShiduAlarmWebSocketClient.synMonitorAlarmPoint();
log.info("设备告警websocket监听");
AlarmWebSocketClient.synAlarmPoint();
log.info("自动巡检websocket监听");
InspectionWebSocketClient.synInspectionAlarm();
log.info("火探websocket监听");
FireDetectionWebSocketClient.synFireDetection();
}
catch (Exception e)
{
System.out.println("error xian bank occur when run server! " + e);
}
}
/**
* 启动amosop-server
*
* @param args
* @throws IOException
* @throws URISyntaxException
*/
public static void main(String[] args) {
log.info("start xian bank Service..........");
try {
SpringApplication application = new SpringApplication(AmosBankStart.class);
ConfigurableApplicationContext run = application.run(args);
//websocketClinet 设置application
AlarmWebSocketClient.setAllpicationContext(run);
MonitorAlarmWebSocketClient.setAllpicationContext(run);
ShiduAlarmWebSocketClient.setAllpicationContext(run);
InspectionWebSocketClient.setAllpicationContext(run);
FireDetectionWebSocketClient.setAllpicationContext(run);
Environment environment = run.getEnvironment();
log.info("SwaggerUI: http://localhost:"
+ environment.getProperty("server.port") + "/swagger-ui.html");
log.info("动环告警websocket监听");
MonitorAlarmWebSocketClient.synMonitorAlarmPoint();
log.info("湿度告警websocket监听");
ShiduAlarmWebSocketClient.synMonitorAlarmPoint();
log.info("设备告警websocket监听");
AlarmWebSocketClient.synAlarmPoint();
log.info("自动巡检websocket监听");
InspectionWebSocketClient.synInspectionAlarm();
log.info("火探websocket监听");
FireDetectionWebSocketClient.synFireDetection();
} catch (Exception e) {
System.out.println("error xian bank occur when run server! " + e);
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment