From 37ba56bacce4594d9da9fe1b639112ffc918e125 Mon Sep 17 00:00:00 2001 From: xiaodaozi Date: Fri, 27 Jun 2025 18:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/win/yinyitong-dll-stand.bat | 15 +++++++++------ pom.xml | 21 ++++++++++----------- src/main/resources/logback-spring.xml | 14 +++++++------- 3 files changed, 26 insertions(+), 24 deletions(-) diff --git a/doc/win/yinyitong-dll-stand.bat b/doc/win/yinyitong-dll-stand.bat index 7f08c75..d265fc1 100644 --- a/doc/win/yinyitong-dll-stand.bat +++ b/doc/win/yinyitong-dll-stand.bat @@ -1,5 +1,7 @@ @echo off +:: 医保程序地址 +set WINEXE_CHSPATH=D:/Project/yinyitong-win/yinyitong.exe :: 医保程序地址 set CHSPATH=D:/Project/CHS :: jar名称 @@ -7,16 +9,17 @@ set NAME=yinyitong-dll-stand :: 端口号 set PROT=5946 -echo 关闭端口进程:%PROT% +echo 1、关闭端口进程:%PROT% for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%PROT%"') do taskkill /pid %%m -t -f -echo 启动:%NAME% +echo 2、启动本地程序 +start %CHSPATH%/javaw.exe -Dfile.encoding=utf-8 -Djava.library.path=%CHSPATH% -Dlog.path=%~dp0 -jar %~dp0\%NAME%.jar --server.port=%PROT% -cd %CHSPATH% +:: 延迟5秒 +timeout /NOBREAK /T 5 >nul -start javaw.exe -Dfile.encoding=UTF-8 -Djava.library.path=%CHSPATH% -Dlog.path=%~dp0 -jar %~dp0\%NAME%.jar --server.port=%PROT% - -echo 启动完成 +echo 3、启动银医通 +start %WINEXE_CHSPATH% exit ::pause diff --git a/pom.xml b/pom.xml index 2cdf8dd..abd3fe7 100644 --- a/pom.xml +++ b/pom.xml @@ -47,6 +47,11 @@ test + + junit junit @@ -60,22 +65,11 @@ - net.java.dev.jna jna-jpms ${jna.version} - - net.java.dev.jna jna-platform-jpms @@ -115,6 +109,11 @@ flying-saucer-core 9.1.22 + diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 226d8a2..bd29a9f 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -29,9 +29,9 @@ - + + <!–设置日志级别,过滤掉info日志,只输入error日志–> ERROR @@ -40,15 +40,15 @@ ${LOG_HOME}/error-log.html - + --> - + + <!–日志文件输出的文件名 –> ${LOG_HOME}/%d{yyyy-MM-dd}.%i.html - + <!–日志文件保留天数 –> 30 10MB @@ -57,7 +57,7 @@ %p%d%msg%M%F{32}%L - + -->