liurunyu
2023-11-20 fb31efc4c1efee99164dc83f6f67f1f609d1ba40
pipIrr-platform/pipIrr-mw/pipIrr-mw-accept/src/main/java/com/dy/aceMw/PipIrrMwAcceptApplication.java
@@ -2,9 +2,11 @@
import com.dy.common.multiDataSource.EnableMultiDataSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
@@ -19,6 +21,11 @@
        SpringApplication.run(PipIrrMwAcceptApplication.class, args);
    }
    /**
     * Spring容器启动完成后,执行下面方法
     * @param args
     * @throws Exception
     */
    @Override
    public void run(String... args) throws Exception {
        try{
@@ -31,6 +38,14 @@
    }
    private void startAceSv(){
        if(sv != null){
            sv.startServer();
        }
    }
    private Server sv ;
    @Autowired
    public void setSv(Server sv){
        this.sv = sv ;
    }
}