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

图片上传地址修改

parent 22d885f7
......@@ -75,8 +75,8 @@ public class CommonController
String filePath = ProjectNameConfig.getUploadPath();
String fileServer = serverConfig.getUrl();
if(fileServer.contains("yhq.zhkjgf.com")){
fileServer = serverConfig.getUrl().replace("http://yhq.zhkjgf.com","https://yhq.zhkjgf.com:8898");
if(fileServer.contains("huaxin.zhkjgf.com")){
fileServer = serverConfig.getUrl().replace("http://huaxin.zhkjgf.com","https://huaxin.zhkjgf.com");
}
// 上传并返回新文件名称
String fileName = FileUploadUtils.upload(filePath, file);
......
......@@ -6,9 +6,9 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/huaxin_ranqi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: jiankun123
url: jdbc:mysql://36.139.135.138:30145/huaxin_ranqi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: huaxin_ranqi
password: S4ANrhc5fBsCS7Ha
# 从库数据源
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