| | |
| | | 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; |
| | | |
| | |
| | | * @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); |
| | | } |
| | | } |