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; /** * @version 3.5.0 * @description: The type Xzs application. * Copyright (C), 2020-2024, 武汉思维跳跃科技有限公司 * @date 2021/12/25 9:45 */ @EnableScheduling @SpringBootApplication @EnableTransactionManagement @EnableConfigurationProperties(value = { SystemConfig.class}) public class JxkgApplication { /** * The entry point of application. * * @param args the input arguments */ public static void main(String[] args) { ConfigurableApplicationContext context = SpringApplication.run(JxkgApplication.class, args); WebsocketServer.setApplicationContext(context); } }