From 62afcbeaa5cc328bff01ae1facb18a6b8c03c5bc Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期二, 24 六月 2025 16:57:18 +0800 Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV --- pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/PipIrrRemoteApplication.java | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/PipIrrRemoteApplication.java b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/PipIrrRemoteApplication.java index cc6479c..d65516d 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/PipIrrRemoteApplication.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/PipIrrRemoteApplication.java @@ -1,14 +1,21 @@ package com.dy.pipIrrRemote; import com.dy.common.multiDataSource.EnableMultiDataSource; +import lombok.extern.slf4j.Slf4j; import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.context.annotation.FilterType; +import org.springframework.boot.web.servlet.ServletComponentScan; +import org.springframework.scheduling.annotation.EnableScheduling; +@Slf4j @SpringBootApplication +@EnableScheduling //鍚姩瀹氭椂浠诲姟锛屾湰妯″潡websocket鍙戦�佸績璺� +@ServletComponentScan //鎵弿servlet锛屾湰妯″潡涓惎鍔╳ebsocket @EnableAspectJAutoProxy @EnableMultiDataSource @ComponentScan(basePackages = {"com.dy.common", "com.dy.pipIrrGlobal", "com.dy.pipIrrRemote"}, @@ -18,7 +25,16 @@ }) } ) -@MapperScan(basePackages={"com.dy.pipIrrGlobal.daoRm", "com.dy.pipIrrGlobal.daoPr", "com.dy.pipIrrGlobal.daoSe", "com.dy.pipIrrGlobal.daoBa","com.dy.pipIrrGlobal.daoFi"}) +@MapperScan(basePackages={"com.dy.pipIrrGlobal.daoRm", + "com.dy.pipIrrGlobal.daoPr", + "com.dy.pipIrrGlobal.daoSe", + "com.dy.pipIrrGlobal.daoBa", + "com.dy.pipIrrGlobal.daoFi", + "com.dy.pipIrrGlobal.daoAllRound", + "com.dy.pipIrrGlobal.daoLargeScreen", + "com.dy.pipIrrGlobal.daoIr", + "com.dy.pipIrrGlobal.daoVi" +}) public class PipIrrRemoteApplication { public static void main(String[] args) { @@ -26,3 +42,18 @@ } } +//public class PipIrrRemoteApplication implements CommandLineRunner { +// +// public static void main(String[] args) { +// SpringApplication.run(PipIrrRemoteApplication.class, args); +// } +// //楠岃瘉log鏄惁杈撳嚭 +// @Override +// public void run(String... args) throws Exception { +// log.trace("Trace level log"); +// log.debug("Debug level log"); +// log.info("Info level log"); +// log.warn("Warn level log"); +// log.error("Error level log"); +// } +//} -- Gitblit v1.8.0