xiangpei
2024-10-31 c89a3707c556f97c4531f556e6c832cb6b5d2b43
src/main/java/com/ycl/jxkg/JxkgApplication.java
@@ -1,9 +1,11 @@
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;
@@ -25,6 +27,7 @@
     * @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);
    }
}