|
package com.ai.bss.location.rescue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import com.ai.ipu.server.connect.ConnectServerStart;
import com.ai.ipu.server.connect.util.ConnectServerManager;
import com.ai.ipu.server.stomp.WebSocketStompServer;
/**
* @author zhangfeng
*/
@EnableJpaRepositories(basePackages = "com.ai.bss")
@EntityScan(basePackages = {"com.ai.bss","com.ai.abc"})
@ComponentScan(basePackages = {"com.ai.bss","com.ai.abc"})
@EnableAsync
@SpringBootApplication
public class LocationRescueApp {
public static void main(String[] args) throws Exception {
//注册镜屏服务
ConnectServerManager.registerServer("websocket.port", new WebSocketStompServer("/stomp"));
//镜屏服务启动
ConnectServerStart.start(args, false);
SpringApplication.run(LocationRescueApp.class, args);
}
}
|