change author and add skywalking photo
This commit is contained in:
@@ -15,11 +15,9 @@
|
|||||||
* 账号密码:admin/admin
|
* 账号密码:admin/admin
|
||||||
* 应用监控账号密码:admin/admin
|
* 应用监控账号密码:admin/admin
|
||||||
* 配置中心账号密码:nacos/nacos
|
* 配置中心账号密码:nacos/nacos
|
||||||
|
* APM监控账号密码:admin/admin
|
||||||
* **[项目更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936235)**
|
* **[项目更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936235)**
|
||||||
|
|
||||||
* **[文档更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936236)**
|
* **[文档更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936236)**
|
||||||
|
|
||||||
* 前后端分离的企业级微服务架构
|
* 前后端分离的企业级微服务架构
|
||||||
* 基于`Spring Boot 2.0.X`、`Spring Cloud Finchley`和`Spring Cloud Alibaba`
|
* 基于`Spring Boot 2.0.X`、`Spring Cloud Finchley`和`Spring Cloud Alibaba`
|
||||||
* 深度定制`Spring Security`真正实现了基于`RBAC`、`jwt`和`oauth2`的无状态统一权限认证的解决方案
|
* 深度定制`Spring Security`真正实现了基于`RBAC`、`jwt`和`oauth2`的无状态统一权限认证的解决方案
|
||||||
@@ -28,7 +26,15 @@
|
|||||||
* 注重代码规范,严格控制包依赖,每个工程基本都是最小依赖
|
* 注重代码规范,严格控制包依赖,每个工程基本都是最小依赖
|
||||||
* 非常适合学习和企业中使用
|
* 非常适合学习和企业中使用
|
||||||
|
|
||||||
## 2. 功能介绍
|
|
||||||
|
|
||||||
|
## 2. 总体服务拓扑图
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 3. 功能介绍
|
||||||
|
|
||||||
* **统一认证功能**
|
* **统一认证功能**
|
||||||
* 支持oauth2的四种模式登录
|
* 支持oauth2的四种模式登录
|
||||||
@@ -49,6 +55,10 @@
|
|||||||
* 支持CI/CD持续集成(包括前端和后端)
|
* 支持CI/CD持续集成(包括前端和后端)
|
||||||
* **系统监控功能**
|
* **系统监控功能**
|
||||||
* 服务调用链监控
|
* 服务调用链监控
|
||||||
|
* 应用拓扑图
|
||||||
|
|
||||||
|
* 慢服务检测
|
||||||
|
|
||||||
* 应用监控(应用健康、JVM、内存、线程)
|
* 应用监控(应用健康、JVM、内存、线程)
|
||||||
* 错误日志查询
|
* 错误日志查询
|
||||||
* 慢查询SQL监控
|
* 慢查询SQL监控
|
||||||
@@ -66,7 +76,9 @@
|
|||||||
* 统一跨域处理
|
* 统一跨域处理
|
||||||
* 统一异常处理
|
* 统一异常处理
|
||||||
|
|
||||||
## 3. 模块说明
|
|
||||||
|
|
||||||
|
## 4. 模块说明
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
central-platform -- 父项目,公共依赖
|
central-platform -- 父项目,公共依赖
|
||||||
@@ -103,13 +115,19 @@ central-platform -- 父项目,公共依赖
|
|||||||
│ │ ├─back-web -- 后台前端[8066]
|
│ │ ├─back-web -- 后台前端[8066]
|
||||||
```
|
```
|
||||||
|
|
||||||
## 4. 截图(点击可大图预览)
|
|
||||||
|
|
||||||
|
## 5. 截图(点击可大图预览)
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><img src="https://gitee.com/zlt2000/images/raw/master/持续集成2.png"/></td>
|
<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>
|
<td><img src="https://gitee.com/zlt2000/images/raw/master/sonar结果.png"/></td>
|
||||||
</tr>
|
</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>
|
<tr>
|
||||||
<td><img src="https://gitee.com/zlt2000/images/raw/master/elk.png"/></td>
|
<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>
|
<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;
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* 文件中心
|
* 文件中心
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@EnableDiscoveryClient
|
@EnableDiscoveryClient
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ import org.springframework.context.annotation.Configuration;
|
|||||||
import com.aliyun.oss.OSSClient;
|
import com.aliyun.oss.OSSClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* 阿里云配置
|
* 阿里云配置
|
||||||
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
public class AliyunOSSConfig {
|
public class AliyunOSSConfig {
|
||||||
|
|||||||
+2
-1
@@ -13,9 +13,10 @@ import org.springframework.context.annotation.Configuration;
|
|||||||
import com.central.file.model.FileType;
|
import com.central.file.model.FileType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* FileService工厂<br>
|
* FileService工厂<br>
|
||||||
* 将各个实现类放入map
|
* 将各个实现类放入map
|
||||||
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
public class OssServiceFactory {
|
public class OssServiceFactory {
|
||||||
|
|||||||
@@ -10,8 +10,9 @@ import com.qiniu.storage.UploadManager;
|
|||||||
import com.qiniu.util.Auth;
|
import com.qiniu.util.Auth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* 七牛云配置
|
* 七牛云配置
|
||||||
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
public class QiniuOSSConfig {
|
public class QiniuOSSConfig {
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ import com.central.file.model.FileType;
|
|||||||
* 文件上传 同步oss db双写 目前仅实现了阿里云,七牛云
|
* 文件上传 同步oss db双写 目前仅实现了阿里云,七牛云
|
||||||
* 参考src/main/view/upload.html
|
* 参考src/main/view/upload.html
|
||||||
*
|
*
|
||||||
* @author zlt
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
public class FileController {
|
public class FileController {
|
||||||
|
|||||||
@@ -12,8 +12,9 @@ import java.io.Serializable;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* file实体类
|
* file实体类
|
||||||
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
package com.central.file.model;
|
package com.central.file.model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* 仅支持阿里云 oss ,七牛云等
|
* 仅支持阿里云 oss ,七牛云等
|
||||||
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
public enum FileType {
|
public enum FileType {
|
||||||
//七牛
|
//七牛
|
||||||
|
|||||||
@@ -9,8 +9,9 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
import com.central.file.model.FileInfo;
|
import com.central.file.model.FileInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* 文件service 目前仅支持阿里云oss,七牛云
|
* 文件service 目前仅支持阿里云oss,七牛云
|
||||||
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
public interface IFileService extends IService<FileInfo> {
|
public interface IFileService extends IService<FileInfo> {
|
||||||
FileInfo upload(MultipartFile file ) throws Exception;
|
FileInfo upload(MultipartFile file ) throws Exception;
|
||||||
|
|||||||
+3
-2
@@ -18,10 +18,11 @@ import com.central.file.utils.FileUtil;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* AbstractIFileService 抽取类
|
* AbstractIFileService 抽取类
|
||||||
* 根据filetype 实例化具体oss对象
|
* 根据filetype 实例化具体oss对象
|
||||||
*/
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public abstract class AbstractIFileService extends ServiceImpl<FileMapper, FileInfo> implements IFileService {
|
public abstract class AbstractIFileService extends ServiceImpl<FileMapper, FileInfo> implements IFileService {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+2
-1
@@ -10,8 +10,9 @@ import com.central.file.model.FileInfo;
|
|||||||
import com.central.file.model.FileType;
|
import com.central.file.model.FileType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* 阿里云oss存储文件
|
* 阿里云oss存储文件
|
||||||
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@Service("aliyunOssServiceImpl")
|
@Service("aliyunOssServiceImpl")
|
||||||
public class AliyunOssServiceImplI extends AbstractIFileService {
|
public class AliyunOssServiceImplI extends AbstractIFileService {
|
||||||
|
|||||||
+2
-1
@@ -17,8 +17,9 @@ import com.qiniu.util.Auth;
|
|||||||
import com.qiniu.util.StringMap;
|
import com.qiniu.util.StringMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* 七牛云oss存储文件
|
* 七牛云oss存储文件
|
||||||
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service("qiniuOssServiceImpl")
|
@Service("qiniuOssServiceImpl")
|
||||||
|
|||||||
@@ -11,9 +11,10 @@ import org.apache.commons.codec.digest.DigestUtils;
|
|||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
|
||||||
* 文件工具类
|
* 文件工具类
|
||||||
*/
|
*
|
||||||
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class FileUtil {
|
public class FileUtil {
|
||||||
private FileUtil() {
|
private FileUtil() {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
|||||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@EnableLoginArgResolver
|
@EnableLoginArgResolver
|
||||||
@EnableDiscoveryClient
|
@EnableDiscoveryClient
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@Api(tags = "菜单模块api")
|
@Api(tags = "菜单模块api")
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
* 角色管理
|
* 角色管理
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
* 用户
|
* 用户
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author zlt
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
|
|||||||
+1
-3
@@ -31,9 +31,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* userService
|
* @author 作者 owen E-mail: 624191343@qq.com
|
||||||
*
|
|
||||||
* @author zlt
|
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ public class UserInfoHeaderFilter extends ZuulFilter {
|
|||||||
String userInfo;
|
String userInfo;
|
||||||
if (principal instanceof SysUser) {
|
if (principal instanceof SysUser) {
|
||||||
SysUser user = (SysUser) principal;
|
SysUser user = (SysUser) principal;
|
||||||
userInfo = user.getUsername() + SecurityConstants.USER_SPLIT + user.getId();
|
userInfo = user.getUsername();
|
||||||
} else {
|
} else {
|
||||||
//jwt的token只有name
|
//jwt的token只有name
|
||||||
userInfo = authentication.getName();
|
userInfo = authentication.getName();
|
||||||
|
|||||||
Reference in New Issue
Block a user