From a56cbc8a929232b039f137fc51b5af27f40b2822 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 01 八月 2024 15:33:25 +0800 Subject: [PATCH] feat:异常恢复监控 --- ycl-server/src/main/java/com/ycl/PlatformApplication.java | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/PlatformApplication.java b/ycl-server/src/main/java/com/ycl/PlatformApplication.java index 73a10aa..d1ce599 100644 --- a/ycl-server/src/main/java/com/ycl/PlatformApplication.java +++ b/ycl-server/src/main/java/com/ycl/PlatformApplication.java @@ -1,26 +1,23 @@ package com.ycl; -import com.ycl.websocket.WebsocketServer; import lombok.extern.slf4j.Slf4j; -import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.ImportAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; +import org.springframework.cloud.openfeign.EnableFeignClients; +import org.springframework.cloud.openfeign.FeignAutoConfiguration; import org.springframework.transaction.annotation.EnableTransactionManagement; @Slf4j @EnableCaching @EnableTransactionManagement +@EnableFeignClients(basePackages = {"com.ycl.feign"}) +@ImportAutoConfiguration({FeignAutoConfiguration.class}) @SpringBootApplication public class PlatformApplication { public static void main(String[] args) { SpringApplication.run(PlatformApplication.class, args); log.info("(鈾モ棤鈥库棤)锞夛緸 鑷础杩愮淮骞冲彴鍚姩鎴愬姛 醿�(麓凇`醿�)锞�"); - try { - WebsocketServer.runWebsocket(); - log.info("websocket鍚姩鎴愬姛"); - } catch (Exception e) { - log.info("websocket鍚姩澶辫触"); - } } } -- Gitblit v1.8.0