|
|
|
@ -1,6 +1,9 @@
|
|
|
|
|
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;
|
|
|
|
@ -8,6 +11,7 @@ import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
import org.springframework.context.annotation.FilterType;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
|
|
|
|
|
@Log4j
|
|
|
|
|
@SpringBootApplication
|
|
|
|
|
@EnableScheduling
|
|
|
|
|
@MapperScan(basePackages = {"com.supervision.**.mapper"})
|
|
|
|
@ -17,6 +21,9 @@ public class VirtualPatientRasaApplication {
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SpringApplication.run(VirtualPatientRasaApplication.class, args);
|
|
|
|
|
|
|
|
|
|
RasaModelManager bean = SpringBeanUtil.getBean(RasaModelManager.class);
|
|
|
|
|
bean.wakeUpInterruptServerScheduled();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|