|
|
|
@ -2,11 +2,11 @@ package com.supervision.rasa;
|
|
|
|
|
|
|
|
|
|
import com.supervision.config.WebConfig;
|
|
|
|
|
import com.supervision.rasa.service.RasaModelManager;
|
|
|
|
|
import com.supervision.util.SpringBeanUtil;
|
|
|
|
|
import lombok.extern.log4j.Log4j;
|
|
|
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
import org.springframework.context.annotation.FilterType;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
@ -20,10 +20,10 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
public class VirtualPatientRasaApplication {
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SpringApplication.run(VirtualPatientRasaApplication.class, args);
|
|
|
|
|
ConfigurableApplicationContext context = SpringApplication.run(VirtualPatientRasaApplication.class, args);
|
|
|
|
|
|
|
|
|
|
RasaModelManager bean = SpringBeanUtil.getBean(RasaModelManager.class);
|
|
|
|
|
bean.wakeUpInterruptServerScheduled();
|
|
|
|
|
RasaModelManager rasaModelManager = context.getBean(RasaModelManager.class);
|
|
|
|
|
rasaModelManager.wakeUpInterruptServerScheduled();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|