From b7bc8929de595f1666045355bb6bdfffb81c720d Mon Sep 17 00:00:00 2001 From: yuqh <123456> Date: Tue, 12 Aug 2025 16:56:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=87=E5=90=8C=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base-buildpackage/src/main/resources/application-yut.yml | 2 +- base-buildpackage/src/main/resources/application.yml | 2 +- .../file/download/service/impl/FileDownloadServiceImpl.java | 6 +++--- .../sys/file/upload/service/impl/FileUploadServiceImpl.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/base-buildpackage/src/main/resources/application-yut.yml b/base-buildpackage/src/main/resources/application-yut.yml index 02632112..21bbb4c3 100644 --- a/base-buildpackage/src/main/resources/application-yut.yml +++ b/base-buildpackage/src/main/resources/application-yut.yml @@ -12,7 +12,7 @@ spring: dynamic: datasource: master: - url: jdbc:mysql://ufidahz.com.cn:9096/businesscenter_yut?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true + url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter_yut?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true username: root password: bd993088e8a7c3dc5f44441617f9b4bf driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置 diff --git a/base-buildpackage/src/main/resources/application.yml b/base-buildpackage/src/main/resources/application.yml index b87e5bf7..b6722967 100644 --- a/base-buildpackage/src/main/resources/application.yml +++ b/base-buildpackage/src/main/resources/application.yml @@ -139,4 +139,4 @@ sftp: port: username: password: - filePase: \ No newline at end of file + filePase: diff --git a/base-service/src/main/java/com/hzya/frame/sys/file/download/service/impl/FileDownloadServiceImpl.java b/base-service/src/main/java/com/hzya/frame/sys/file/download/service/impl/FileDownloadServiceImpl.java index 036d31a7..83e2eb05 100644 --- a/base-service/src/main/java/com/hzya/frame/sys/file/download/service/impl/FileDownloadServiceImpl.java +++ b/base-service/src/main/java/com/hzya/frame/sys/file/download/service/impl/FileDownloadServiceImpl.java @@ -30,13 +30,13 @@ import java.util.zip.ZipInputStream; public class FileDownloadServiceImpl extends BaseService< FileDownloadEntity,Long> implements IFileDownloadService{ protected IFileDownloadDao filedownloadDao; - @Value("${savefile.path}") + @Value("${savefile.path:}") public String DSK; - @Value("${savefile.pluginpath}") + @Value("${savefile.pluginpath:}") public String PLUGINPATH; - @Value("${savefile.tomcatpath}") + @Value("${savefile.tomcatpath:}") public String TOMCATPATH; @Autowired public void setFileDownloadDao(IFileDownloadDao dao) { diff --git a/base-service/src/main/java/com/hzya/frame/sys/file/upload/service/impl/FileUploadServiceImpl.java b/base-service/src/main/java/com/hzya/frame/sys/file/upload/service/impl/FileUploadServiceImpl.java index b2ccda26..071fa4e2 100644 --- a/base-service/src/main/java/com/hzya/frame/sys/file/upload/service/impl/FileUploadServiceImpl.java +++ b/base-service/src/main/java/com/hzya/frame/sys/file/upload/service/impl/FileUploadServiceImpl.java @@ -40,10 +40,10 @@ import java.util.zip.ZipFile; */ @Service(value = "sys_fileUploadService") public class FileUploadServiceImpl extends BaseService implements IFileUploadService { - @Value("${savefile.path}") + @Value("${savefile.path:}") public String DSK; - @Value("${savefile.pluginpath}") + @Value("${savefile.pluginpath:}") public String PLUGINPATH; protected IFileUploadDao fileUploadDao;