Commit 16be8bf6 authored by 耿迪迪's avatar 耿迪迪

图片上传地址修改

parent 22d885f7
...@@ -75,8 +75,8 @@ public class CommonController ...@@ -75,8 +75,8 @@ public class CommonController
String filePath = ProjectNameConfig.getUploadPath(); String filePath = ProjectNameConfig.getUploadPath();
String fileServer = serverConfig.getUrl(); String fileServer = serverConfig.getUrl();
if(fileServer.contains("yhq.zhkjgf.com")){ if(fileServer.contains("huaxin.zhkjgf.com")){
fileServer = serverConfig.getUrl().replace("http://yhq.zhkjgf.com","https://yhq.zhkjgf.com:8898"); fileServer = serverConfig.getUrl().replace("http://huaxin.zhkjgf.com","https://huaxin.zhkjgf.com");
} }
// 上传并返回新文件名称 // 上传并返回新文件名称
String fileName = FileUploadUtils.upload(filePath, file); String fileName = FileUploadUtils.upload(filePath, file);
......
...@@ -6,9 +6,9 @@ spring: ...@@ -6,9 +6,9 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://localhost:3306/huaxin_ranqi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://36.139.135.138:30145/huaxin_ranqi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root username: huaxin_ranqi
password: jiankun123 password: S4ANrhc5fBsCS7Ha
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment