From 5d4c30df4b800cd24f948f32ea2e168d210365be Mon Sep 17 00:00:00 2001 From: zlt Date: Sun, 21 Apr 2019 21:53:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9fastdfs=E6=96=87=E4=BB=B6url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 52 ++++++++++--------- .../file/config/FastdfsAutoConfigure.java | 2 +- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 72faaabc..935f4ebb 100644 --- a/README.md +++ b/README.md @@ -50,31 +50,32 @@ * 支持手机号加密码登录 * 支持openId登录 * 支持第三方系统单点登录 - * **分布式系统基础支撑** - * 服务注册发现、路由与负载均衡 - * 服务降级与熔断 - * 服务限流(url/方法级别) - * 统一配置中心 - * 统一日志中心 - * 统一分布式缓存操作类、cacheManager配置扩展 - * 分布式锁 - * 分布式任务调度器 - * 支持CI/CD持续集成(包括前端和后端) - * 分布式高性能Id生成器 - * 分布式事务 + - 服务注册发现、路由与负载均衡 + - 服务降级与熔断 + - 服务限流(url/方法级别) + - 统一配置中心 + - 统一日志中心 + - 统一分布式缓存操作类、cacheManager配置扩展 + - 分布式锁 + - 分布式任务调度器 + - 支持CI/CD持续集成(包括前端和后端) + - 分布式Id生成器 + - 分布式事务(强一致性/最终一致性) * **系统监控功能** - * 服务调用链监控 - * 应用拓扑图 - * 慢服务检测 - * 服务Metric监控 - * 应用监控(应用健康、JVM、内存、线程) - * 错误日志查询 - * 慢查询SQL监控 - * 应用吞吐量监控(qps、rt) - * 服务降级、熔断监控 - * 服务限流监控 - * 分库分表、读写分离 + - 服务调用链监控 + - 应用拓扑图 + - 慢查询SQL监控 + - 应用吞吐量监控(qps、rt) + - 服务降级、熔断监控 + - 服务限流监控 + - 微服务服务监控 + - 服务器监控 + - redis监控 + - mysql监控 + - elasticSearch监控 + - nacos监控 + - prometheus监控 * **业务基础功能支撑** * 高性能方法级幂等性支持 * RBAC权限管理,实现细粒度控制(方法、url级别) @@ -123,8 +124,9 @@ central-platform -- 父项目,公共依赖 │ ├─zlt-transaction -- 事务一级工程 │ │ ├─txlcn-tm -- tx-lcn事务管理器[7970] │ ├─zlt-demo -- demo一级工程 -│ │ ├─txlcn-demo -- txlcn的demo -│ │ ├─sharding-jdbc-demo -- sharding-jdbc的demo +│ │ ├─txlcn-demo -- txlcn分布式事务demo +│ │ ├─sharding-jdbc-demo -- sharding-jdbc分库分表demo +│ │ ├─rocketmq-demo -- rocketmq和mq事务demo ```   diff --git a/zlt-business/file-center/src/main/java/com/central/file/config/FastdfsAutoConfigure.java b/zlt-business/file-center/src/main/java/com/central/file/config/FastdfsAutoConfigure.java index b4187981..e845d6f5 100644 --- a/zlt-business/file-center/src/main/java/com/central/file/config/FastdfsAutoConfigure.java +++ b/zlt-business/file-center/src/main/java/com/central/file/config/FastdfsAutoConfigure.java @@ -37,7 +37,7 @@ public class FastdfsAutoConfigure { @Override protected void uploadFile(MultipartFile file, FileInfo fileInfo) throws Exception { StorePath storePath = storageClient.uploadFile(file.getInputStream(), file.getSize(), FilenameUtils.getExtension(file.getOriginalFilename()), null); - fileInfo.setUrl(fileProperties.getFdfs().getWebUrl() + "/" + storePath.getFullPath()); + fileInfo.setUrl("http://" + fileProperties.getFdfs().getWebUrl() + "/" + storePath.getFullPath()); fileInfo.setPath(storePath.getFullPath()); }