| | |
| | | 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.SpringBootApplication; |
| | | import org.springframework.cache.annotation.EnableCaching; |
| | | import org.springframework.cloud.openfeign.EnableFeignClients; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | |
| | | @Slf4j |
| | | @EnableCaching |
| | | @EnableTransactionManagement |
| | | @EnableFeignClients(basePackages = {"com.ycl.web"}) |
| | | @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启动失败"); |
| | | } |
| | | } |
| | | } |