change author and add skywalking photo

This commit is contained in:
zlt
2019-02-27 14:29:37 +08:00
parent 14439a0b42
commit d72a6d163e
21 changed files with 56 additions and 30 deletions
+24 -6
View File
@@ -15,11 +15,9 @@
* 账号密码:admin/admin
* 应用监控账号密码:admin/admin
* 配置中心账号密码:nacos/nacos
* APM监控账号密码:admin/admin
* **[项目更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936235)**
* **[文档更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936236)**
* 前后端分离的企业级微服务架构
* 基于`Spring Boot 2.0.X`、`Spring Cloud Finchley`和`Spring Cloud Alibaba`
* 深度定制`Spring Security`真正实现了基于`RBAC`、`jwt`和`oauth2`的无状态统一权限认证的解决方案
@@ -28,7 +26,15 @@
* 注重代码规范,严格控制包依赖,每个工程基本都是最小依赖
* 非常适合学习和企业中使用
## 2. 功能介绍
 
## 2. 总体服务拓扑图
![](https://gitee.com/zlt2000/images/raw/master/服务拓扑图.png)
 
## 3. 功能介绍
* **统一认证功能**
* 支持oauth2的四种模式登录
@@ -49,6 +55,10 @@
* 支持CI/CD持续集成(包括前端和后端)
* **系统监控功能**
* 服务调用链监控
* 应用拓扑图
* 慢服务检测
* 应用监控(应用健康、JVM、内存、线程)
* 错误日志查询
* 慢查询SQL监控
@@ -66,7 +76,9 @@
* 统一跨域处理
* 统一异常处理
## 3. 模块说明
 
## 4. 模块说明
```lua
central-platform -- 父项目,公共依赖
@@ -103,13 +115,19 @@ central-platform -- 父项目,公共依赖
│ │ ├─back-web -- 后台前端[8066]
```
## 4. 截图(点击可大图预览)
 
## 5. 截图(点击可大图预览)
<table>
<tr>
<td><img src="https://gitee.com/zlt2000/images/raw/master/持续集成2.png"/></td>
<td><img src="https://gitee.com/zlt2000/images/raw/master/sonar结果.png"/></td>
</tr>
<tr>
<td><img src="https://gitee.com/zlt2000/images/raw/master/skywalking首页.png"/></td>
<td><img src="https://gitee.com/zlt2000/images/raw/master/skywalking应用拓扑图.png"/></td>
</tr>
<tr>
<td><img src="https://gitee.com/zlt2000/images/raw/master/elk.png"/></td>
<td><img src="https://gitee.com/zlt2000/images/raw/master/任务中心.png"/></td>
@@ -5,8 +5,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* @author zlt
* 文件中心
* @author 作者 owen E-mail: 624191343@qq.com
*/
@EnableDiscoveryClient
@SpringBootApplication
@@ -8,8 +8,9 @@ import org.springframework.context.annotation.Configuration;
import com.aliyun.oss.OSSClient;
/**
* @author zlt
* 阿里云配置
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Configuration
public class AliyunOSSConfig {
@@ -13,9 +13,10 @@ import org.springframework.context.annotation.Configuration;
import com.central.file.model.FileType;
/**
* @author zlt
* FileService工厂<br>
* 将各个实现类放入map
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Configuration
public class OssServiceFactory {
@@ -10,8 +10,9 @@ import com.qiniu.storage.UploadManager;
import com.qiniu.util.Auth;
/**
* @author zlt
* 七牛云配置
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Configuration
public class QiniuOSSConfig {
@@ -22,7 +22,7 @@ import com.central.file.model.FileType;
* 文件上传 同步oss db双写 目前仅实现了阿里云,七牛云
* 参考src/main/view/upload.html
*
* @author zlt
* @author 作者 owen E-mail: 624191343@qq.com
*/
@RestController
public class FileController {
@@ -12,8 +12,9 @@ import java.io.Serializable;
import java.util.Date;
/**
* @author zlt
* file实体类
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -1,8 +1,9 @@
package com.central.file.model;
/**
* @author zlt
* 仅支持阿里云 oss ,七牛云等
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
public enum FileType {
//七牛
@@ -9,8 +9,9 @@ import org.springframework.web.multipart.MultipartFile;
import com.central.file.model.FileInfo;
/**
* @author zlt
* 文件service 目前仅支持阿里云oss,七牛云
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
public interface IFileService extends IService<FileInfo> {
FileInfo upload(MultipartFile file ) throws Exception;
@@ -18,10 +18,11 @@ import com.central.file.utils.FileUtil;
import lombok.extern.slf4j.Slf4j;
/**
* @author zlt
* AbstractIFileService 抽取类
* 根据filetype 实例化具体oss对象
*/
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Slf4j
public abstract class AbstractIFileService extends ServiceImpl<FileMapper, FileInfo> implements IFileService {
@Override
@@ -10,8 +10,9 @@ import com.central.file.model.FileInfo;
import com.central.file.model.FileType;
/**
* @author zlt
* 阿里云oss存储文件
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Service("aliyunOssServiceImpl")
public class AliyunOssServiceImplI extends AbstractIFileService {
@@ -17,8 +17,9 @@ import com.qiniu.util.Auth;
import com.qiniu.util.StringMap;
/**
* @author zlt
* 七牛云oss存储文件
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Slf4j
@Service("qiniuOssServiceImpl")
@@ -11,9 +11,10 @@ import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.web.multipart.MultipartFile;
/**
* @author zlt
* 文件工具类
*/
*
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Slf4j
public class FileUtil {
private FileUtil() {
@@ -8,7 +8,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* @author zlt
* @author 作者 owen E-mail: 624191343@qq.com
*/
@EnableLoginArgResolver
@EnableDiscoveryClient
@@ -21,7 +21,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
/**
* @author zlt
* @author 作者 owen E-mail: 624191343@qq.com
*/
@RestController
@Api(tags = "菜单模块api")
@@ -21,7 +21,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
/**
* @author zlt
* @author 作者 owen E-mail: 624191343@qq.com
* 角色管理
*/
@Slf4j
@@ -32,7 +32,7 @@ import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
/**
* @author zlt
* @author 作者 owen E-mail: 624191343@qq.com
* 用户
*/
@Slf4j
@@ -19,7 +19,7 @@ import lombok.extern.slf4j.Slf4j;
import javax.annotation.Resource;
/**
* @author zlt
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Slf4j
@Service
@@ -24,7 +24,7 @@ import lombok.extern.slf4j.Slf4j;
import javax.annotation.Resource;
/**
* @author zlt
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Slf4j
@Service
@@ -31,9 +31,7 @@ import lombok.extern.slf4j.Slf4j;
import javax.annotation.Resource;
/**
* userService
*
* @author zlt
* @author 作者 owen E-mail: 624191343@qq.com
*/
@Slf4j
@Service
@@ -44,7 +44,7 @@ public class UserInfoHeaderFilter extends ZuulFilter {
String userInfo;
if (principal instanceof SysUser) {
SysUser user = (SysUser) principal;
userInfo = user.getUsername() + SecurityConstants.USER_SPLIT + user.getId();
userInfo = user.getUsername();
} else {
//jwt的token只有name
userInfo = authentication.getName();