| | |
| | | package com.ycl.jxkg; |
| | | |
| | | import com.ycl.jxkg.config.property.SystemConfig; |
| | | import com.ycl.jxkg.server.WebsocketServer; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
| | | import org.springframework.context.ConfigurableApplicationContext; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | |
| | | /** |
| | |
| | | * Copyright (C), 2020-2024, 武汉思维跳跃科技有限公司 |
| | | * @date 2021/12/25 9:45 |
| | | */ |
| | | @EnableScheduling |
| | | @SpringBootApplication |
| | | @EnableTransactionManagement |
| | | @EnableConfigurationProperties(value = { SystemConfig.class}) |
| | |
| | | * @param args the input arguments |
| | | */ |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(JxkgApplication.class, args); |
| | | ConfigurableApplicationContext context = SpringApplication.run(JxkgApplication.class, args); |
| | | WebsocketServer.setApplicationContext(context); |
| | | } |
| | | } |