From 4185a44f983c7aa3cf45ec03a65eece9e847e229 Mon Sep 17 00:00:00 2001 From: 严智鑫 <test> Date: 星期四, 16 五月 2024 13:22:44 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/HangZhouMes --- hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java index bf6e500..376cca1 100644 --- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java +++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java @@ -2,12 +2,11 @@ import lombok.extern.slf4j.Slf4j; import org.mybatis.spring.annotation.MapperScan; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.scheduling.annotation.EnableScheduling; import springfox.documentation.swagger2.annotations.EnableSwagger2; -import com.mes.edgstoragecage.service.*; /** * @Author : zhoush @@ -19,10 +18,14 @@ @MapperScan("com.mes.*.mapper") @EnableDiscoveryClient @EnableSwagger2 +@EnableScheduling public class CacheGlassModuleApplication { public static void main(String[] args) { try { +// SpringApplication springApplication = new SpringApplication(CacheGlassModuleApplication.class); +// ConfigurableApplicationContext applicationContext = springApplication.run(args); +// WebSocketServer.setApplicationContext(applicationContext); SpringApplication.run(CacheGlassModuleApplication.class, args); } catch (Exception e) { log.error(e.getMessage()); -- Gitblit v1.8.0