Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Pig
提交
e9dcaa4c
P
Pig
项目概览
int
/
Pig
上一次同步 11 个月
通知
8
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Pig
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e9dcaa4c
编写于
11月 05, 2019
作者:
pig_冷冷
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🔖
2.5.0. Spring Cloud Hoxton、Spring Boot 2.2
上级
ea06c5a9
变更
24
隐藏空白更改
内联
并排
Showing
24 changed file
with
76 addition
and
337 deletion
+76
-337
README.md
README.md
+16
-7
db/pig.sql
db/pig.sql
+2
-62
pig-auth/pom.xml
pig-auth/pom.xml
+3
-3
pig-common/pig-common-core/pom.xml
pig-common/pig-common-core/pom.xml
+2
-2
pig-common/pig-common-log/pom.xml
pig-common/pig-common-log/pom.xml
+3
-3
pig-common/pig-common-security/pom.xml
pig-common/pig-common-security/pom.xml
+3
-3
pig-common/pom.xml
pig-common/pom.xml
+1
-1
pig-config/pom.xml
pig-config/pom.xml
+1
-1
pig-config/src/main/resources/config/application-dev.yml
pig-config/src/main/resources/config/application-dev.yml
+0
-12
pig-config/src/main/resources/config/pig-zipkin-dev.yml
pig-config/src/main/resources/config/pig-zipkin-dev.yml
+0
-18
pig-eureka/pom.xml
pig-eureka/pom.xml
+1
-1
pig-gateway/pom.xml
pig-gateway/pom.xml
+2
-2
pig-upms/pig-upms-api/pom.xml
pig-upms/pig-upms-api/pom.xml
+2
-2
pig-upms/pig-upms-biz/pom.xml
pig-upms/pig-upms-biz/pom.xml
+5
-5
pig-upms/pom.xml
pig-upms/pom.xml
+1
-1
pig-visual/pig-codegen/pom.xml
pig-visual/pig-codegen/pom.xml
+4
-4
pig-visual/pig-monitor/pom.xml
pig-visual/pig-monitor/pom.xml
+1
-1
pig-visual/pig-zipkin/Dockerfile
pig-visual/pig-zipkin/Dockerfile
+0
-15
pig-visual/pig-zipkin/pom.xml
pig-visual/pig-zipkin/pom.xml
+0
-94
pig-visual/pig-zipkin/src/main/java/com/pig4cloud/pig/zipkin/PigZipkinApplication.java
...n/java/com/pig4cloud/pig/zipkin/PigZipkinApplication.java
+0
-28
pig-visual/pig-zipkin/src/main/resources/banner.txt
pig-visual/pig-zipkin/src/main/resources/banner.txt
+0
-16
pig-visual/pig-zipkin/src/main/resources/bootstrap.yml
pig-visual/pig-zipkin/src/main/resources/bootstrap.yml
+0
-26
pig-visual/pom.xml
pig-visual/pom.xml
+1
-2
pom.xml
pom.xml
+28
-28
未找到文件。
README.md
浏览文件 @
e9dcaa4c
...
...
@@ -4,12 +4,12 @@
<p
align=
"center"
>
<img
src=
"https://img.shields.io/badge/Avue-2.
1
.0-green.svg"
alt=
"Build Status"
>
<img
src=
"https://img.shields.io/badge/Spring%20Cloud-
Greenwich.SR3
-blue.svg"
alt=
"Coverage Status"
>
<img
src=
"https://img.shields.io/badge/Spring%20Boot-2.
1.9
.RELEASE-blue.svg"
alt=
"Downloads"
>
<img
src=
"https://img.shields.io/badge/Avue-2.
2
.0-green.svg"
alt=
"Build Status"
>
<img
src=
"https://img.shields.io/badge/Spring%20Cloud-
Hoxton.RC1
-blue.svg"
alt=
"Coverage Status"
>
<img
src=
"https://img.shields.io/badge/Spring%20Boot-2.
2.0
.RELEASE-blue.svg"
alt=
"Downloads"
>
</p>
-
基于 Spring Cloud
Greenwich.SR3 、Spring Security
OAuth2 的RBAC权限管理系统
-
基于 Spring Cloud
Hoxton 、Spring Boot 2.2、
OAuth2 的RBAC权限管理系统
-
基于数据驱动视图的理念封装 element-ui,即使没有 vue 的使用经验也能快速上手
-
提供对常见容器化支持 Docker、Kubernetes、Rancher2 支持
-
提供 lambda 、stream api 、webflux 的生产实践
...
...
@@ -22,6 +22,15 @@
#### 快速构架微服务应用
```
xml
<!-- pig-gen archetype -->
<dependency>
<groupId>
com.pig4cloud.archetype
</groupId>
<artifactId>
pig-gen
</artifactId>
<version>
last.version
</version>
</dependency>
```
<img
src=
"https://images.gitee.com/uploads/images/2019/1026/004238_9a73e1e7_393021.gif"
/>
#### 核心依赖
...
...
@@ -29,12 +38,12 @@
依赖 | 版本
---|---
Spring Boot | 2.
1.9
.RELEASE
Spring Cloud |
Greenwich.SR3
Spring Boot | 2.
2.0
.RELEASE
Spring Cloud |
Hoxton.RC1
Spring Security OAuth2 | 2.3.6
Mybatis Plus | 3.2.0
hutool | 5.0.3
Avue | 2.
1
.0
Avue | 2.
2
.0
...
...
db/pig.sql
浏览文件 @
e9dcaa4c
...
...
@@ -128,7 +128,7 @@ CREATE TABLE `sys_menu` (
-- Records of `sys_menu`
-- ----------------------------
BEGIN
;
INSERT
INTO
`sys_menu`
VALUES
(
'1000'
,
'权限管理'
,
null
,
'/upms'
,
'-1'
,
'icon-quanxianguanli'
,
'Layout'
,
'0'
,
'0'
,
'0'
,
'2018-09-28 08:29:53'
,
'2018-09-28 08:53:01'
,
'0'
),
(
'1100'
,
'用户管理'
,
null
,
'user'
,
'1000'
,
'icon-yonghuguanli'
,
'views/admin/user/index'
,
'1'
,
'0'
,
'0'
,
'2017-11-02 22:24:37'
,
'2018-09-28 09:00:41'
,
'0'
),
(
'1101'
,
'用户新增'
,
'sys_user_add'
,
null
,
'1100'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 09:52:09'
,
'2018-09-28 09:06:34'
,
'0'
),
(
'1102'
,
'用户修改'
,
'sys_user_edit'
,
null
,
'1100'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 09:52:48'
,
'2018-09-28 09:06:37'
,
'0'
),
(
'1103'
,
'用户删除'
,
'sys_user_del'
,
null
,
'1100'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 09:54:01'
,
'2018-09-28 09:06:42'
,
'0'
),
(
'1200'
,
'菜单管理'
,
null
,
'menu'
,
'1000'
,
'icon-caidanguanli'
,
'views/admin/menu/index'
,
'2'
,
'0'
,
'0'
,
'2017-11-08 09:57:27'
,
'2018-09-28 09:00:45'
,
'0'
),
(
'1201'
,
'菜单新增'
,
'sys_menu_add'
,
null
,
'1200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:15:53'
,
'2018-09-28 09:07:16'
,
'0'
),
(
'1202'
,
'菜单修改'
,
'sys_menu_edit'
,
null
,
'1200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:16:23'
,
'2018-09-28 09:07:18'
,
'0'
),
(
'1203'
,
'菜单删除'
,
'sys_menu_del'
,
null
,
'1200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:16:43'
,
'2018-09-28 09:07:22'
,
'0'
),
(
'1300'
,
'角色管理'
,
null
,
'role'
,
'1000'
,
'icon-jiaoseguanli'
,
'views/admin/role/index'
,
'3'
,
'0'
,
'0'
,
'2017-11-08 10:13:37'
,
'2018-09-28 09:00:48'
,
'0'
),
(
'1301'
,
'角色新增'
,
'sys_role_add'
,
null
,
'1300'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:14:18'
,
'2018-09-28 09:07:46'
,
'0'
),
(
'1302'
,
'角色修改'
,
'sys_role_edit'
,
null
,
'1300'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:14:41'
,
'2018-09-28 09:07:49'
,
'0'
),
(
'1303'
,
'角色删除'
,
'sys_role_del'
,
null
,
'1300'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:14:59'
,
'2018-09-28 09:07:53'
,
'0'
),
(
'1304'
,
'分配权限'
,
'sys_role_perm'
,
null
,
'1300'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-04-20 07:22:55'
,
'2018-09-28 09:13:23'
,
'0'
),
(
'1400'
,
'部门管理'
,
null
,
'dept'
,
'1000'
,
'icon-web-icon-'
,
'views/admin/dept/index'
,
'4'
,
'0'
,
'0'
,
'2018-01-20 13:17:19'
,
'2018-12-09 16:35:12'
,
'0'
),
(
'1401'
,
'部门新增'
,
'sys_dept_add'
,
null
,
'1400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-01-20 14:56:16'
,
'2018-09-28 09:08:13'
,
'0'
),
(
'1402'
,
'部门修改'
,
'sys_dept_edit'
,
null
,
'1400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-01-20 14:56:59'
,
'2018-09-28 09:08:16'
,
'0'
),
(
'1403'
,
'部门删除'
,
'sys_dept_del'
,
null
,
'1400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-01-20 14:57:28'
,
'2018-09-28 09:08:18'
,
'0'
),
(
'2000'
,
'系统管理'
,
null
,
'/admin'
,
'-1'
,
'icon-xitongguanli'
,
'Layout'
,
'1'
,
'0'
,
'0'
,
'2017-11-07 20:56:00'
,
'2018-09-28 08:53:18'
,
'0'
),
(
'2100'
,
'日志管理'
,
null
,
'log'
,
'2000'
,
'icon-rizhiguanli'
,
'views/admin/log/index'
,
'5'
,
'0'
,
'0'
,
'2017-11-20 14:06:22'
,
'2018-09-28 09:01:52'
,
'0'
),
(
'2101'
,
'日志删除'
,
'sys_log_del'
,
null
,
'2100'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-20 20:37:37'
,
'2018-09-28 09:08:44'
,
'0'
),
(
'2200'
,
'字典管理'
,
null
,
'dict'
,
'2000'
,
'icon-navicon-zdgl'
,
'views/admin/dict/index'
,
'6'
,
'0'
,
'0'
,
'2017-11-29 11:30:52'
,
'2018-09-28 09:01:47'
,
'0'
),
(
'2201'
,
'字典删除'
,
'sys_dict_del'
,
null
,
'2200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-29 11:30:11'
,
'2018-09-28 09:09:10'
,
'0'
),
(
'2202'
,
'字典新增'
,
'sys_dict_add'
,
null
,
'2200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-05-11 22:34:55'
,
'2018-09-28 09:09:12'
,
'0'
),
(
'2203'
,
'字典修改'
,
'sys_dict_edit'
,
null
,
'2200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-05-11 22:36:03'
,
'2018-09-28 09:09:16'
,
'0'
),
(
'2300'
,
'代码生成'
,
''
,
'gen'
,
'2000'
,
'icon-weibiaoti46'
,
'views/gen/index'
,
'8'
,
'0'
,
'0'
,
'2018-01-20 13:17:19'
,
'2018-11-24 05:21:01'
,
'0'
),
(
'2400'
,
'终端管理'
,
''
,
'client'
,
'2000'
,
'icon-shouji'
,
'views/admin/client/index'
,
'9'
,
'0'
,
'0'
,
'2018-01-20 13:17:19'
,
'2018-09-28 09:01:43'
,
'0'
),
(
'2401'
,
'客户端新增'
,
'sys_client_add'
,
null
,
'2400'
,
'1'
,
null
,
null
,
'0'
,
'1'
,
'2018-05-15 21:35:18'
,
'2018-09-28 09:10:25'
,
'0'
),
(
'2402'
,
'客户端修改'
,
'sys_client_edit'
,
null
,
'2400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-05-15 21:37:06'
,
'2018-09-28 09:10:27'
,
'0'
),
(
'2403'
,
'客户端删除'
,
'sys_client_del'
,
null
,
'2400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-05-15 21:39:16'
,
'2018-09-28 09:10:30'
,
'0'
),
(
'2500'
,
'服务监控'
,
null
,
'http://127.0.0.1:5001'
,
'2000'
,
'icon-server'
,
null
,
'10'
,
'0'
,
'0'
,
'2018-06-26 10:50:32'
,
'2019-02-01 20:41:30'
,
'0'
),
(
'2600'
,
'令牌管理'
,
null
,
'token'
,
'2000'
,
'icon-denglvlingpai'
,
'views/admin/token/index'
,
'11'
,
'0'
,
'0'
,
'2018-09-04 05:58:41'
,
'2018-09-28 09:01:38'
,
'0'
),
(
'2601'
,
'令牌删除'
,
'sys_token_del'
,
null
,
'2600'
,
null
,
null
,
'1'
,
'0'
,
'1'
,
'2018-09-04 05:59:50'
,
'2018-09-28 09:11:24'
,
'0'
),
(
'2700'
,
'链路调用'
,
null
,
'http://127.0.0.1:5002'
,
'2000'
,
'icon-server'
,
null
,
'10'
,
'0'
,
'0'
,
'2018-06-26 10:50:32'
,
'2019-02-01 20:41:30'
,
'0'
),
(
'5000'
,
'一级菜单'
,
null
,
'/crud'
,
'-1'
,
'icon-caidanguanli'
,
''
,
'4'
,
'0'
,
'0'
,
'2018-08-28 01:50:22'
,
'2018-09-28 08:58:20'
,
'0'
),
(
'5001'
,
'一级菜单'
,
null
,
'index'
,
'5000'
,
'icon-caidanguanli'
,
'views/crud/index'
,
'1'
,
'0'
,
'0'
,
'2018-08-28 01:50:48'
,
'2018-11-21 17:48:19'
,
'1'
),
(
'5002'
,
'二级菜单'
,
null
,
'crud'
,
'5001'
,
'icon-caidanguanli'
,
'views/crud/index'
,
'1'
,
'0'
,
'0'
,
'2018-08-28 01:51:23'
,
'2018-11-21 17:47:40'
,
'1'
),
(
'5003'
,
'二级菜单'
,
null
,
''
,
'5000'
,
'icon-caidanguanli'
,
''
,
'1'
,
'0'
,
'0'
,
'2018-11-21 17:49:18'
,
'2018-11-21 17:53:25'
,
'0'
),
(
'5004'
,
'二级菜单'
,
null
,
'index'
,
'5003'
,
'icon-caidanguanli'
,
'views/crud/index'
,
'1'
,
'0'
,
'0'
,
'2018-11-21 17:53:51'
,
'2018-12-20 14:26:53'
,
'1'
),
(
'9999'
,
'系统官网'
,
null
,
'https://pig4cloud.com/#/'
,
'-1'
,
'icon-guanwangfangwen'
,
null
,
'9'
,
'0'
,
'0'
,
'2019-01-17 17:05:19'
,
'2019-01-17 17:29:06'
,
'0'
);
INSERT
INTO
`sys_menu`
VALUES
(
'1000'
,
'权限管理'
,
null
,
'/upms'
,
'-1'
,
'icon-quanxianguanli'
,
'Layout'
,
'0'
,
'0'
,
'0'
,
'2018-09-28 08:29:53'
,
'2018-09-28 08:53:01'
,
'0'
),
(
'1100'
,
'用户管理'
,
null
,
'user'
,
'1000'
,
'icon-yonghuguanli'
,
'views/admin/user/index'
,
'1'
,
'0'
,
'0'
,
'2017-11-02 22:24:37'
,
'2018-09-28 09:00:41'
,
'0'
),
(
'1101'
,
'用户新增'
,
'sys_user_add'
,
null
,
'1100'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 09:52:09'
,
'2018-09-28 09:06:34'
,
'0'
),
(
'1102'
,
'用户修改'
,
'sys_user_edit'
,
null
,
'1100'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 09:52:48'
,
'2018-09-28 09:06:37'
,
'0'
),
(
'1103'
,
'用户删除'
,
'sys_user_del'
,
null
,
'1100'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 09:54:01'
,
'2018-09-28 09:06:42'
,
'0'
),
(
'1200'
,
'菜单管理'
,
null
,
'menu'
,
'1000'
,
'icon-caidanguanli'
,
'views/admin/menu/index'
,
'2'
,
'0'
,
'0'
,
'2017-11-08 09:57:27'
,
'2018-09-28 09:00:45'
,
'0'
),
(
'1201'
,
'菜单新增'
,
'sys_menu_add'
,
null
,
'1200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:15:53'
,
'2018-09-28 09:07:16'
,
'0'
),
(
'1202'
,
'菜单修改'
,
'sys_menu_edit'
,
null
,
'1200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:16:23'
,
'2018-09-28 09:07:18'
,
'0'
),
(
'1203'
,
'菜单删除'
,
'sys_menu_del'
,
null
,
'1200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:16:43'
,
'2018-09-28 09:07:22'
,
'0'
),
(
'1300'
,
'角色管理'
,
null
,
'role'
,
'1000'
,
'icon-jiaoseguanli'
,
'views/admin/role/index'
,
'3'
,
'0'
,
'0'
,
'2017-11-08 10:13:37'
,
'2018-09-28 09:00:48'
,
'0'
),
(
'1301'
,
'角色新增'
,
'sys_role_add'
,
null
,
'1300'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:14:18'
,
'2018-09-28 09:07:46'
,
'0'
),
(
'1302'
,
'角色修改'
,
'sys_role_edit'
,
null
,
'1300'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:14:41'
,
'2018-09-28 09:07:49'
,
'0'
),
(
'1303'
,
'角色删除'
,
'sys_role_del'
,
null
,
'1300'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-08 10:14:59'
,
'2018-09-28 09:07:53'
,
'0'
),
(
'1304'
,
'分配权限'
,
'sys_role_perm'
,
null
,
'1300'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-04-20 07:22:55'
,
'2018-09-28 09:13:23'
,
'0'
),
(
'1400'
,
'部门管理'
,
null
,
'dept'
,
'1000'
,
'icon-web-icon-'
,
'views/admin/dept/index'
,
'4'
,
'0'
,
'0'
,
'2018-01-20 13:17:19'
,
'2018-12-09 16:35:12'
,
'0'
),
(
'1401'
,
'部门新增'
,
'sys_dept_add'
,
null
,
'1400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-01-20 14:56:16'
,
'2018-09-28 09:08:13'
,
'0'
),
(
'1402'
,
'部门修改'
,
'sys_dept_edit'
,
null
,
'1400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-01-20 14:56:59'
,
'2018-09-28 09:08:16'
,
'0'
),
(
'1403'
,
'部门删除'
,
'sys_dept_del'
,
null
,
'1400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-01-20 14:57:28'
,
'2018-09-28 09:08:18'
,
'0'
),
(
'2000'
,
'系统管理'
,
null
,
'/admin'
,
'-1'
,
'icon-xitongguanli'
,
'Layout'
,
'1'
,
'0'
,
'0'
,
'2017-11-07 20:56:00'
,
'2018-09-28 08:53:18'
,
'0'
),
(
'2100'
,
'日志管理'
,
null
,
'log'
,
'2000'
,
'icon-rizhiguanli'
,
'views/admin/log/index'
,
'5'
,
'0'
,
'0'
,
'2017-11-20 14:06:22'
,
'2018-09-28 09:01:52'
,
'0'
),
(
'2101'
,
'日志删除'
,
'sys_log_del'
,
null
,
'2100'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-20 20:37:37'
,
'2018-09-28 09:08:44'
,
'0'
),
(
'2200'
,
'字典管理'
,
null
,
'dict'
,
'2000'
,
'icon-navicon-zdgl'
,
'views/admin/dict/index'
,
'6'
,
'0'
,
'0'
,
'2017-11-29 11:30:52'
,
'2018-09-28 09:01:47'
,
'0'
),
(
'2201'
,
'字典删除'
,
'sys_dict_del'
,
null
,
'2200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2017-11-29 11:30:11'
,
'2018-09-28 09:09:10'
,
'0'
),
(
'2202'
,
'字典新增'
,
'sys_dict_add'
,
null
,
'2200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-05-11 22:34:55'
,
'2018-09-28 09:09:12'
,
'0'
),
(
'2203'
,
'字典修改'
,
'sys_dict_edit'
,
null
,
'2200'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-05-11 22:36:03'
,
'2018-09-28 09:09:16'
,
'0'
),
(
'2300'
,
'代码生成'
,
''
,
'gen'
,
'2000'
,
'icon-weibiaoti46'
,
'views/gen/index'
,
'8'
,
'0'
,
'0'
,
'2018-01-20 13:17:19'
,
'2018-11-24 05:21:01'
,
'0'
),
(
'2400'
,
'终端管理'
,
''
,
'client'
,
'2000'
,
'icon-shouji'
,
'views/admin/client/index'
,
'9'
,
'0'
,
'0'
,
'2018-01-20 13:17:19'
,
'2018-09-28 09:01:43'
,
'0'
),
(
'2401'
,
'客户端新增'
,
'sys_client_add'
,
null
,
'2400'
,
'1'
,
null
,
null
,
'0'
,
'1'
,
'2018-05-15 21:35:18'
,
'2018-09-28 09:10:25'
,
'0'
),
(
'2402'
,
'客户端修改'
,
'sys_client_edit'
,
null
,
'2400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-05-15 21:37:06'
,
'2018-09-28 09:10:27'
,
'0'
),
(
'2403'
,
'客户端删除'
,
'sys_client_del'
,
null
,
'2400'
,
null
,
null
,
null
,
'0'
,
'1'
,
'2018-05-15 21:39:16'
,
'2018-09-28 09:10:30'
,
'0'
),
(
'2500'
,
'服务监控'
,
null
,
'http://127.0.0.1:5001'
,
'2000'
,
'icon-server'
,
null
,
'10'
,
'0'
,
'0'
,
'2018-06-26 10:50:32'
,
'2019-02-01 20:41:30'
,
'0'
),
(
'2600'
,
'令牌管理'
,
null
,
'token'
,
'2000'
,
'icon-denglvlingpai'
,
'views/admin/token/index'
,
'11'
,
'0'
,
'0'
,
'2018-09-04 05:58:41'
,
'2018-09-28 09:01:38'
,
'0'
),
(
'2601'
,
'令牌删除'
,
'sys_token_del'
,
null
,
'2600'
,
null
,
null
,
'1'
,
'0'
,
'1'
,
'2018-09-04 05:59:50'
,
'2018-09-28 09:11:24'
,
'0'
),(
'5000'
,
'一级菜单'
,
null
,
'/crud'
,
'-1'
,
'icon-caidanguanli'
,
''
,
'4'
,
'0'
,
'0'
,
'2018-08-28 01:50:22'
,
'2018-09-28 08:58:20'
,
'0'
),
(
'5001'
,
'一级菜单'
,
null
,
'index'
,
'5000'
,
'icon-caidanguanli'
,
'views/crud/index'
,
'1'
,
'0'
,
'0'
,
'2018-08-28 01:50:48'
,
'2018-11-21 17:48:19'
,
'1'
),
(
'5002'
,
'二级菜单'
,
null
,
'crud'
,
'5001'
,
'icon-caidanguanli'
,
'views/crud/index'
,
'1'
,
'0'
,
'0'
,
'2018-08-28 01:51:23'
,
'2018-11-21 17:47:40'
,
'1'
),
(
'5003'
,
'二级菜单'
,
null
,
''
,
'5000'
,
'icon-caidanguanli'
,
''
,
'1'
,
'0'
,
'0'
,
'2018-11-21 17:49:18'
,
'2018-11-21 17:53:25'
,
'0'
),
(
'5004'
,
'二级菜单'
,
null
,
'index'
,
'5003'
,
'icon-caidanguanli'
,
'views/crud/index'
,
'1'
,
'0'
,
'0'
,
'2018-11-21 17:53:51'
,
'2018-12-20 14:26:53'
,
'1'
),
(
'9999'
,
'系统官网'
,
null
,
'https://pig4cloud.com/#/'
,
'-1'
,
'icon-guanwangfangwen'
,
null
,
'9'
,
'0'
,
'0'
,
'2019-01-17 17:05:19'
,
'2019-01-17 17:29:06'
,
'0'
);
COMMIT
;
-- ----------------------------
...
...
@@ -212,7 +212,7 @@ CREATE TABLE `sys_role_menu` (
-- Records of `sys_role_menu`
-- ----------------------------
BEGIN
;
INSERT
INTO
`sys_role_menu`
VALUES
(
'1'
,
'1000'
),
(
'1'
,
'1100'
),
(
'1'
,
'1101'
),
(
'1'
,
'1102'
),
(
'1'
,
'1103'
),
(
'1'
,
'1200'
),
(
'1'
,
'1201'
),
(
'1'
,
'1202'
),
(
'1'
,
'1203'
),
(
'1'
,
'1300'
),
(
'1'
,
'1301'
),
(
'1'
,
'1302'
),
(
'1'
,
'1303'
),
(
'1'
,
'1304'
),
(
'1'
,
'1400'
),
(
'1'
,
'1401'
),
(
'1'
,
'1402'
),
(
'1'
,
'1403'
),
(
'1'
,
'2000'
),
(
'1'
,
'2100'
),
(
'1'
,
'2101'
),
(
'1'
,
'2200'
),
(
'1'
,
'2201'
),
(
'1'
,
'2202'
),
(
'1'
,
'2203'
),
(
'1'
,
'2300'
),
(
'1'
,
'2400'
),
(
'1'
,
'2401'
),
(
'1'
,
'2402'
),
(
'1'
,
'2403'
),
(
'1'
,
'2500'
),
(
'1'
,
'2600'
),
(
'1'
,
'2601'
),
(
'1'
,
'
2700'
),
(
'1'
,
'
9999'
),
(
'2'
,
'1000'
),
(
'2'
,
'1100'
),
(
'2'
,
'1101'
),
(
'2'
,
'1102'
),
(
'2'
,
'1103'
),
(
'2'
,
'1200'
),
(
'2'
,
'1201'
),
(
'2'
,
'1202'
),
(
'2'
,
'1203'
),
(
'2'
,
'1300'
),
(
'2'
,
'1301'
),
(
'2'
,
'1302'
),
(
'2'
,
'1303'
),
(
'2'
,
'1304'
),
(
'2'
,
'1400'
),
(
'2'
,
'1401'
),
(
'2'
,
'1402'
),
(
'2'
,
'1403'
);
INSERT
INTO
`sys_role_menu`
VALUES
(
'1'
,
'1000'
),
(
'1'
,
'1100'
),
(
'1'
,
'1101'
),
(
'1'
,
'1102'
),
(
'1'
,
'1103'
),
(
'1'
,
'1200'
),
(
'1'
,
'1201'
),
(
'1'
,
'1202'
),
(
'1'
,
'1203'
),
(
'1'
,
'1300'
),
(
'1'
,
'1301'
),
(
'1'
,
'1302'
),
(
'1'
,
'1303'
),
(
'1'
,
'1304'
),
(
'1'
,
'1400'
),
(
'1'
,
'1401'
),
(
'1'
,
'1402'
),
(
'1'
,
'1403'
),
(
'1'
,
'2000'
),
(
'1'
,
'2100'
),
(
'1'
,
'2101'
),
(
'1'
,
'2200'
),
(
'1'
,
'2201'
),
(
'1'
,
'2202'
),
(
'1'
,
'2203'
),
(
'1'
,
'2300'
),
(
'1'
,
'2400'
),
(
'1'
,
'2401'
),
(
'1'
,
'2402'
),
(
'1'
,
'2403'
),
(
'1'
,
'2500'
),
(
'1'
,
'2600'
),
(
'1'
,
'2601'
),
(
'1'
,
'9999'
),
(
'2'
,
'1000'
),
(
'2'
,
'1100'
),
(
'2'
,
'1101'
),
(
'2'
,
'1102'
),
(
'2'
,
'1103'
),
(
'2'
,
'1200'
),
(
'2'
,
'1201'
),
(
'2'
,
'1202'
),
(
'2'
,
'1203'
),
(
'2'
,
'1300'
),
(
'2'
,
'1301'
),
(
'2'
,
'1302'
),
(
'2'
,
'1303'
),
(
'2'
,
'1304'
),
(
'2'
,
'1400'
),
(
'2'
,
'1401'
),
(
'2'
,
'1402'
),
(
'2'
,
'1403'
);
COMMIT
;
-- ----------------------------
...
...
@@ -262,63 +262,3 @@ CREATE TABLE `sys_user_role` (
BEGIN
;
INSERT
INTO
`sys_user_role`
VALUES
(
'1'
,
'1'
),
(
'2'
,
'2'
);
COMMIT
;
-- ----------------------------
-- Table structure for `zipkin_annotations`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`zipkin_annotations`
;
CREATE
TABLE
`zipkin_annotations`
(
`trace_id_high`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'If non zero, this means the trace uses 128 bit traceIds instead of 64 bit'
,
`trace_id`
bigint
(
20
)
NOT
NULL
COMMENT
'coincides with zipkin_spans.trace_id'
,
`span_id`
bigint
(
20
)
NOT
NULL
COMMENT
'coincides with zipkin_spans.id'
,
`a_key`
varchar
(
255
)
NOT
NULL
COMMENT
'BinaryAnnotation.key or Annotation.value if type == -1'
,
`a_value`
blob
COMMENT
'BinaryAnnotation.value(), which must be smaller than 64KB'
,
`a_type`
int
(
11
)
NOT
NULL
COMMENT
'BinaryAnnotation.type() or -1 if Annotation'
,
`a_timestamp`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'Used to implement TTL; Annotation.timestamp or zipkin_spans.timestamp'
,
`endpoint_ipv4`
int
(
11
)
DEFAULT
NULL
COMMENT
'Null when Binary/Annotation.endpoint is null'
,
`endpoint_ipv6`
binary
(
16
)
DEFAULT
NULL
COMMENT
'Null when Binary/Annotation.endpoint is null, or no IPv6 address'
,
`endpoint_port`
smallint
(
6
)
DEFAULT
NULL
COMMENT
'Null when Binary/Annotation.endpoint is null'
,
`endpoint_service_name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'Null when Binary/Annotation.endpoint is null'
,
UNIQUE
KEY
`trace_id_high`
(
`trace_id_high`
,
`trace_id`
,
`span_id`
,
`a_key`
,
`a_timestamp`
)
COMMENT
'Ignore insert on duplicate'
,
KEY
`trace_id_high_2`
(
`trace_id_high`
,
`trace_id`
,
`span_id`
)
COMMENT
'for joining with zipkin_spans'
,
KEY
`trace_id_high_3`
(
`trace_id_high`
,
`trace_id`
)
COMMENT
'for getTraces/ByIds'
,
KEY
`endpoint_service_name`
(
`endpoint_service_name`
)
COMMENT
'for getTraces and getServiceNames'
,
KEY
`a_type`
(
`a_type`
)
COMMENT
'for getTraces and autocomplete values'
,
KEY
`a_key`
(
`a_key`
)
COMMENT
'for getTraces and autocomplete values'
,
KEY
`trace_id`
(
`trace_id`
,
`span_id`
,
`a_key`
)
COMMENT
'for dependencies job'
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
COMPRESSED
;
-- ----------------------------
-- Table structure for `zipkin_dependencies`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`zipkin_dependencies`
;
CREATE
TABLE
`zipkin_dependencies`
(
`day`
date
NOT
NULL
,
`parent`
varchar
(
255
)
NOT
NULL
,
`child`
varchar
(
255
)
NOT
NULL
,
`call_count`
bigint
(
20
)
DEFAULT
NULL
,
`error_count`
bigint
(
20
)
DEFAULT
NULL
,
UNIQUE
KEY
`day`
(
`day`
,
`parent`
,
`child`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
COMPRESSED
;
-- ----------------------------
-- Table structure for `zipkin_spans`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`zipkin_spans`
;
CREATE
TABLE
`zipkin_spans`
(
`trace_id_high`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'If non zero, this means the trace uses 128 bit traceIds instead of 64 bit'
,
`trace_id`
bigint
(
20
)
NOT
NULL
,
`id`
bigint
(
20
)
NOT
NULL
,
`name`
varchar
(
255
)
NOT
NULL
,
`parent_id`
bigint
(
20
)
DEFAULT
NULL
,
`debug`
bit
(
1
)
DEFAULT
NULL
,
`start_ts`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'Span.timestamp(): epoch micros used for endTs query and to implement TTL'
,
`duration`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'Span.duration(): micros used for minDuration and maxDuration query'
,
UNIQUE
KEY
`trace_id_high`
(
`trace_id_high`
,
`trace_id`
,
`id`
)
COMMENT
'ignore insert on duplicate'
,
KEY
`trace_id_high_2`
(
`trace_id_high`
,
`trace_id`
,
`id`
)
COMMENT
'for joining with zipkin_annotations'
,
KEY
`trace_id_high_3`
(
`trace_id_high`
,
`trace_id`
)
COMMENT
'for getTracesByIds'
,
KEY
`name`
(
`name`
)
COMMENT
'for getTraces and getSpanNames'
,
KEY
`start_ts`
(
`start_ts`
)
COMMENT
'for getTraces ordering and range'
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
COMPRESSED
;
SET
FOREIGN_KEY_CHECKS
=
1
;
pig-auth/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-auth
</artifactId>
...
...
@@ -39,13 +39,13 @@
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-upms-api
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--security-->
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common-security
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--JDBC相关-->
<dependency>
...
...
pig-common/pig-common-core/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-common-core
</artifactId>
...
...
@@ -49,7 +49,7 @@
</dependency>
<!--mybatis plus extension,包含了mybatis plus core-->
<dependency>
<groupId>
com.
baomidou
</groupId>
<groupId>
com.
pig4cloud
</groupId>
<artifactId>
mybatis-plus-extension
</artifactId>
<version>
${mybatis-plus.version}
</version>
</dependency>
...
...
pig-common/pig-common-log/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-common-log
</artifactId>
...
...
@@ -35,13 +35,13 @@
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common-core
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--UPMS接口模块-->
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-upms-api
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--安全依赖获取上下文信息-->
<dependency>
...
...
pig-common/pig-common-security/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-common-security
</artifactId>
...
...
@@ -35,7 +35,7 @@
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common-core
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--安全模块-->
<dependency>
...
...
@@ -50,7 +50,7 @@
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-upms-api
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
</dependencies>
</project>
pig-common/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-common
</artifactId>
...
...
pig-config/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-config
</artifactId>
...
...
pig-config/src/main/resources/config/application-dev.yml
浏览文件 @
e9dcaa4c
...
...
@@ -8,18 +8,6 @@ spring:
redis
:
password
:
host
:
pig-redis
# zipkin
zipkin
:
enabled
:
true
base-url
:
http://pig-zipkin
sleuth
:
web
:
client
:
enabled
:
true
sampler
:
# 默认的采样比率为0.1,不能看到所有请求数据
# 更改采样比率为1,就能看到所有的请求数据了,但是这样会增加接口调用延迟
probability
:
1.0
# 暴露监控端点
management
:
...
...
pig-config/src/main/resources/config/pig-zipkin-dev.yml
已删除
100644 → 0
浏览文件 @
ea06c5a9
spring
:
# 数据源
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
root
url
:
jdbc:mysql://pig-mysql:3306/pig?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
management
:
metrics
:
web
:
server
:
auto-time-requests
:
false
zipkin
:
storage
:
type
:
mysql
sleuth
:
enabled
:
true
pig-eureka/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-eureka
</artifactId>
...
...
pig-gateway/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-gateway
</artifactId>
...
...
@@ -54,7 +54,7 @@
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common-core
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
</dependencies>
...
...
pig-upms/pig-upms-api/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-upms
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-upms-api
</artifactId>
...
...
@@ -35,7 +35,7 @@
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common-core
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
</dependencies>
</project>
pig-upms/pig-upms-biz/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-upms
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-upms-biz
</artifactId>
...
...
@@ -34,19 +34,19 @@
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-upms-api
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--安全模块-->
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common-security
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--日志处理-->
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common-log
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--配置中心客户端-->
<dependency>
...
...
@@ -55,7 +55,7 @@
</dependency>
<!--mybatis-->
<dependency>
<groupId>
com.
baomidou
</groupId>
<groupId>
com.
pig4cloud
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
<version>
${mybatis-plus.version}
</version>
</dependency>
...
...
pig-upms/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-upms
</artifactId>
...
...
pig-visual/pig-codegen/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -22,7 +22,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-visual
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-codegen
</artifactId>
...
...
@@ -38,7 +38,7 @@
</dependency>
<!--mybatis-->
<dependency>
<groupId>
com.
baomidou
</groupId>
<groupId>
com.
pig4cloud
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
<version>
${mybatis-plus.version}
</version>
</dependency>
...
...
@@ -50,13 +50,13 @@
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common-core
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--安全模块-->
<dependency>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-common-security
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</dependency>
<!--代码生成模板引擎-->
<dependency>
...
...
pig-visual/pig-monitor/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-visual
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-monitor
</artifactId>
...
...
pig-visual/pig-zipkin/Dockerfile
已删除
100644 → 0
浏览文件 @
ea06c5a9
FROM
anapsix/alpine-java:8_server-jre_unlimited
MAINTAINER
wangiegie@gmail.com
RUN
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN
mkdir
-p
/pig-zipkin
WORKDIR
/pig-zipkin
EXPOSE
5002
ADD
./pig-visual/pig-zipkin/target/pig-zipkin.jar ./
CMD
java -Djava.security.egd=file:/dev/./urandom -jar pig-zipkin.jar
pig-visual/pig-zipkin/pom.xml
已删除
100644 → 0
浏览文件 @
ea06c5a9
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
pig-visual
</artifactId>
<groupId>
com.pig4cloud
</groupId>
<version>
2.4.4
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
pig-zipkin
</artifactId>
<packaging>
jar
</packaging>
<description>
pig 服务链路跟踪模块,基于zipkin
</description>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<!--排除tomcat依赖-->
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-undertow
</artifactId>
</dependency>
<!--配置中心客户端-->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-config
</artifactId>
</dependency>
<!--jdbc相关-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
<!--zipkin-->
<dependency>
<groupId>
io.zipkin.java
</groupId>
<artifactId>
zipkin-server
</artifactId>
<version>
${zipkin.version}
</version>
<!--排除log4j2 避免和logback冲突警告-->
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
io.zipkin.java
</groupId>
<artifactId>
zipkin-autoconfigure-ui
</artifactId>
<version>
${zipkin.version}
</version>
</dependency>
<!-- 使用mysql存储-->
<dependency>
<groupId>
io.zipkin.java
</groupId>
<artifactId>
zipkin-autoconfigure-storage-mysql
</artifactId>
<version>
${zipkin.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.java
</groupId>
<artifactId>
zipkin-storage-mysql
</artifactId>
<version>
${zipkin-storage-mysql.version}
</version>
</dependency>
<!-- zipkin2.x 需要此包连接操作mysql -->
<dependency>
<groupId>
org.jooq
</groupId>
<artifactId>
jooq
</artifactId>
<version>
${jooq.version}
</version>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
pig-visual/pig-zipkin/src/main/java/com/pig4cloud/pig/zipkin/PigZipkinApplication.java
已删除
100644 → 0
浏览文件 @
ea06c5a9
package
com.pig4cloud.pig.zipkin
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.context.annotation.Bean
;
import
zipkin.storage.mysql.MySQLStorage
;
import
zipkin2.server.internal.EnableZipkinServer
;
import
javax.sql.DataSource
;
/**
* 服务链路追踪
*
* @author lishangbu
* @date 2019/2/23
*/
@EnableZipkinServer
@SpringCloudApplication
public
class
PigZipkinApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
PigZipkinApplication
.
class
,
args
);
}
@Bean
public
MySQLStorage
mySQLStorage
(
DataSource
datasource
)
{
return
MySQLStorage
.
builder
().
datasource
(
datasource
).
executor
(
Runnable:
:
run
).
build
();
}
}
pig-visual/pig-zipkin/src/main/resources/banner.txt
已删除
100644 → 0
浏览文件 @
ea06c5a9
${AnsiColor.BRIGHT_YELLOW}
::::::::: ::::::::::: ::::::::
:+: :+: :+: :+: :+:
+:+ +:+ +:+ +:+
+#++:++#+ +#+ :#:
+#+ +#+ +#+ +#+#
#+# #+# #+# #+#
### ########### ########
www.pig4cloud.com
Pig Microservice Architecture
pig-visual/pig-zipkin/src/main/resources/bootstrap.yml
已删除
100644 → 0
浏览文件 @
ea06c5a9
server
:
port
:
5002
spring
:
application
:
name
:
pig-zipkin
profiles
:
active
:
dev
#配置中心
cloud
:
config
:
fail-fast
:
true
name
:
${spring.application.name}
profile
:
${spring.profiles.active}
discovery
:
enabled
:
true
service-id
:
pig-config
main
:
allow-bean-definition-overriding
:
true
# 注册中心配置
eureka
:
instance
:
prefer-ip-address
:
true
client
:
service-url
:
defaultZone
:
http://pig:pig@pig-eureka:8761/eureka/
pig-visual/pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -21,7 +21,7 @@
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
</parent>
<artifactId>
pig-visual
</artifactId>
...
...
@@ -31,6 +31,5 @@
<modules>
<module>
pig-codegen
</module>
<module>
pig-monitor
</module>
<module>
pig-zipkin
</module>
</modules>
</project>
pom.xml
浏览文件 @
e9dcaa4c
...
...
@@ -19,31 +19,33 @@
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig-cloud-dependencies-parent
</artifactId>
<version>
Hoxton.RELEASE
</version>
</parent>
<groupId>
com.pig4cloud
</groupId>
<artifactId>
pig
</artifactId>
<version>
2.
4.4
</version>
<version>
2.
5.0
</version>
<name>
${project.artifactId}
</name>
<packaging>
pom
</packaging>
<url>
https://www.pig4cloud.com
</url>
<properties>
<spring-boot.version>
2.
1.9
.RELEASE
</spring-boot.version>
<spring-cloud.version>
Greenwich.SR3
</spring-cloud.version>
<spring-boot.version>
2.
2.0
.RELEASE
</spring-boot.version>
<spring-cloud.version>
Hoxton.RC1
</spring-cloud.version>
<spring-platform.version>
Cairo-SR8
</spring-platform.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.target>
1.8
</maven.compiler.target>
<spring-boot-admin.version>
2.
1.6
</spring-boot-admin.version>
<spring-boot-admin.version>
2.
2.0-SNAPSHOT
</spring-boot-admin.version>
<hutool.version>
5.0.3
</hutool.version>
<mybatis-plus.version>
3.2.0
</mybatis-plus.version>
<kaptcha.version>
0.0.9
</kaptcha.version>
<velocity.version>
1.7
</velocity.version>
<jasypt.version>
2.1.0
</jasypt.version>
<security.oauth.version>
2.3.6.RELEASE
</security.oauth.version>
<!--zipkin2.12.x需要此版本jooq-->
<jooq.version>
3.11.11
</jooq.version>
<zipkin.version>
2.12.2
</zipkin.version>
<zipkin-storage-mysql.version>
2.8.4
</zipkin-storage-mysql.version>
</properties>
<dependencies>
...
...
@@ -74,15 +76,6 @@
<artifactId>
spring-boot-admin-starter-client
</artifactId>
<version>
${spring-boot-admin.version}
</version>
</dependency>
<!--服务链路追踪-->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-sleuth
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-sleuth-zipkin
</artifactId>
</dependency>
<!--断路器依赖-->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
...
...
@@ -190,23 +183,30 @@
</build>
<repositories>
<!--阿里云主仓库,代理了maven central和jcenter仓库-->
<repository>
<id>
aliyun
</id>
<name>
aliyun
</name>
<url>
https://maven.aliyun.com/repository/public
</url>
<releases>
<enabled>
true
</enabled>
</releases>
<id>
spring-milestones
</id>
<name>
Spring Milestones
</name>
<url>
https://repo.spring.io/milestone
</url>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</repository>
<!--阿里云代理Spring 官方仓库-->
<repository>
<id>
spring-milestones
</id>
<name>
Spring Milestones
</name>
<url>
https://maven.aliyun.com/repository/spring
</url>
<id>
sonatype-nexus-snapshots
</id>
<name>
Sonatype Nexus Snapshots
</name>
<url>
https://oss.sonatype.org/content/repositories/snapshots/
</url>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
<releases>
<enabled>
false
</enabled>
</releases>
</repository>
<!--阿里云主仓库,代理了maven central和jcenter仓库-->
<repository>
<id>
aliyun
</id>
<name>
aliyun
</name>
<url>
https://maven.aliyun.com/repository/public
</url>
<releases>
<enabled>
true
</enabled>
</releases>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录