File was renamed from pipIrr-platform/pipIrr-mw/pipIrr-mw-accept/src/main/java/com/dy/aceMw/PipIrrMwAcceptApplication.java |
| | |
| | | package com.dy.aceMw; |
| | | package com.dy.rtuMw; |
| | | |
| | | import com.dy.common.multiDataSource.EnableMultiDataSource; |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | |
| | | @EnableAspectJAutoProxy |
| | | //@EnableAspectJAutoProxy(exposeProxy=true)//见https://blog.csdn.net/qq_32590703/article/details/109320381 |
| | | @EnableMultiDataSource |
| | | @ComponentScan(basePackages = {"com.dy.common", "com.dy.pipIrrGlobal", "com.dy.aceMw"}, |
| | | @ComponentScan(basePackages = {"com.dy.common", "com.dy.pipIrrGlobal", "com.dy.rtuMw"}, |
| | | excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = { |
| | | com.dy.common.apiDoc.SpringApiConfig.class |
| | | }) }) |
| | | //@ComponentScan(basePackages = {"com.dy.common", "com.dy.pipIrrGlobal", "com.dy.aceMw"}) |
| | | //@ComponentScan(basePackages = {"com.dy.common", "com.dy.pipIrrGlobal", "com.dy.rtuMw"}) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal"}) |
| | | public class PipIrrMwAcceptApplication implements CommandLineRunner { |
| | | public class PipIrrMwRtuApplication implements CommandLineRunner { |
| | | |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(PipIrrMwAcceptApplication.class, args); |
| | | SpringApplication.run(PipIrrMwRtuApplication.class, args); |
| | | } |
| | | |
| | | /** |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | finally { |
| | | this.startAceSv() ; |
| | | this.startMwSv() ; |
| | | } |
| | | } |
| | | |
| | | private void startAceSv(){ |
| | | private void startMwSv(){ |
| | | if(sv != null){ |
| | | sv.startServer(); |
| | | } |