【front】更新# 1.去除师傅端websocket

dev
dabin 2025-02-10 10:47:51 +08:00
parent 4a0ccb6877
commit 5d0cd1279d
1 changed files with 7 additions and 6 deletions

View File

@ -22,7 +22,8 @@ import javax.annotation.Resource;
@EnableTransactionManagement @EnableTransactionManagement
@SpringBootApplication(exclude = {RedisRepositoriesAutoConfiguration.class}) @SpringBootApplication(exclude = {RedisRepositoriesAutoConfiguration.class})
@EnableScheduling @EnableScheduling
public class FrontApplication implements CommandLineRunner { //implements CommandLineRunner
public class FrontApplication {
@Resource @Resource
private NettyWebsocketServer nettyWebsocketServer; private NettyWebsocketServer nettyWebsocketServer;
@ -31,9 +32,9 @@ public class FrontApplication implements CommandLineRunner {
SpringApplication.run(FrontApplication.class, args); SpringApplication.run(FrontApplication.class, args);
} }
@Override // @Override
public void run(String... args) throws Exception { // public void run(String... args) throws Exception {
//启动websocket服务 // //启动websocket服务
new Thread(nettyWebsocketServer).start(); // new Thread(nettyWebsocketServer).start();
} // }
} }