Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
pig_冷冷
Pig
提交
bc32c9f2
Pig
项目概览
pig_冷冷
/
Pig
上一次同步 大约 1 年
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Pig
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bc32c9f2
编写于
6月 10, 2020
作者:
L
lishangbu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
⏪
Reverting changes.回滚p6spy sql 日志打印
上级
22424e9b
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
1 addition
and
34 deletion
+1
-34
db/pig_config.sql
db/pig_config.sql
+1
-1
pig-upms/pig-upms-biz/pom.xml
pig-upms/pig-upms-biz/pom.xml
+0
-14
pig-upms/pig-upms-biz/src/main/resources/spy.properties
pig-upms/pig-upms-biz/src/main/resources/spy.properties
+0
-18
pom.xml
pom.xml
+0
-1
未找到文件。
db/pig_config.sql
浏览文件 @
bc32c9f2
...
...
@@ -41,7 +41,7 @@ INSERT INTO `config_info` VALUES (2, 'pig-auth-dev.yml', 'DEFAULT_GROUP', '# 数
INSERT
INTO
`config_info`
VALUES
(
3
,
'pig-codegen-dev.yml'
,
'DEFAULT_GROUP'
,
'## spring security 配置
\n
security:
\n
oauth2:
\n
client:
\n
client-id: ENC(27v1agvAug87ANOVnbKdsw==)
\n
client-secret: ENC(VbnkopxrwgbFVKp+UxJ2pg==)
\n
scope: server
\n\n
# 数据源配置
\n
spring:
\n
datasource:
\n
type: com.zaxxer.hikari.HikariDataSource
\n
driver-class-name: com.mysql.cj.jdbc.Driver
\n
username: root
\n
password: root
\n
url: jdbc:mysql://pig-mysql:3306/pig_codegen?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
\n
resources:
\n
static-locations: classpath:/static/,classpath:/views/
\n\n
# 直接放行URL
\n
ignore:
\n
urls:
\n
- /v2/api-docs
\n
- /actuator/**
\n
'
,
'abc702838b34d11b46e96143ccd9f367'
,
'2019-11-29 16:32:12'
,
'2019-11-29 16:32:12'
,
NULL
,
'127.0.0.1'
,
''
,
''
,
'代码生成配置'
,
NULL
,
NULL
,
'yaml'
,
NULL
);
INSERT
INTO
`config_info`
VALUES
(
4
,
'pig-gateway-dev.yml'
,
'DEFAULT_GROUP'
,
'spring:
\n
cloud:
\n
gateway:
\n
locator:
\n
enabled: true
\n
routes:
\n
# 认证中心
\n
- id: pig-auth
\n
uri: lb://pig-auth
\n
predicates:
\n
- Path=/auth/**
\n
filters:
\n
# 验证码处理
\n
- ValidateCodeGatewayFilter
\n
# 前端密码解密
\n
- PasswordDecoderFilter
\n
#UPMS 模块
\n
- id: pig-upms-biz
\n
uri: lb://pig-upms-biz
\n
predicates:
\n
- Path=/admin/**
\n
filters:
\n
# 限流配置
\n
- name: RequestRateLimiter
\n
args:
\n
key-resolver:
\'
#{@remoteAddrKeyResolver}
\'\n
redis-rate-limiter.replenishRate: 10
\n
redis-rate-limiter.burstCapacity: 20
\n
# 降级配置
\n
- name: Hystrix
\n
args:
\n
name: default
\n
fallbackUri:
\'
forward:/fallback
\'\n
# 代码生成模块
\n
- id: pig-codegen
\n
uri: lb://pig-codegen
\n
predicates:
\n
- Path=/gen/**
\n\n\n
security:
\n
encode:
\n
# 前端密码密钥,必须16位
\n
key:
\'
thanks,pig4cloud
\'\n\n
# 不校验验证码终端
\n
ignore:
\n
clients:
\n
- test
\n
'
,
'32ce953f48c958bb869a7e3e442a4a11'
,
'2019-11-29 16:32:42'
,
'2019-11-29 16:32:42'
,
NULL
,
'127.0.0.1'
,
''
,
''
,
'网关配置'
,
NULL
,
NULL
,
'yaml'
,
NULL
);
INSERT
INTO
`config_info`
VALUES
(
5
,
'pig-monitor-dev.yml'
,
'DEFAULT_GROUP'
,
'spring:
\n
# 安全配置
\n
security:
\n
user:
\n
name: ENC(8Hk2ILNJM8UTOuW/Xi75qg==) # pig
\n
password: ENC(o6cuPFfUevmTbkmBnE67Ow====) # pig
\n
'
,
'85509c6f8c67c364dc78301896274f26'
,
'2019-11-29 16:33:05'
,
'2019-11-29 16:33:05'
,
NULL
,
'127.0.0.1'
,
''
,
''
,
'监控配置'
,
NULL
,
NULL
,
'yaml'
,
NULL
);
INSERT
INTO
`config_info`
VALUES
(
6
,
'pig-upms-biz-dev.yml'
,
'DEFAULT_GROUP'
,
'security:
\n
oauth2:
\n
client:
\n
client-id: ENC(imENTO7M8bLO38LFSIxnzw==)
\n
client-secret: ENC(i3cDFhs26sa2Ucrfz2hnQw==)
\n
scope: server
\n\n
# 数据源
\n
spring:
\n
datasource:
\n
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
\n
username: root
\n
password: root
\n
url: jdbc:p6spy:mysql://pig-mysql:3306/pig?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
\n
'
,
'b68c222a988fad0ba5f41b510d624b08'
,
'2019-11-29 16:52:32'
,
'2020-05-20 07:23:49'
,
NULL
,
'172.19.0.1
'
,
''
,
''
,
'统一权限'
,
'null'
,
'null'
,
'yaml'
,
'null'
);
INSERT
INTO
`config_info`
VALUES
(
6
,
'pig-upms-biz-dev.yml'
,
'DEFAULT_GROUP'
,
'security:
\n
oauth2:
\n
client:
\n
client-id: ENC(imENTO7M8bLO38LFSIxnzw==)
\n
client-secret: ENC(i3cDFhs26sa2Ucrfz2hnQw==)
\n
scope: server
\n\n
# 数据源
\n
spring:
\n
datasource:
\n
type: com.zaxxer.hikari.HikariDataSource
\n
driver-class-name: com.mysql.cj.jdbc.Driver
\n
username: root
\n
password: root
\n
url: jdbc:mysql://pig-mysql:3306/pig?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
\n
'
,
'3248f7cf9ea2ce40cd41cd664ec32ae0'
,
'2019-11-29 16:52:32'
,
'2020-03-14 16:24:24'
,
NULL
,
'172.17.0.125
'
,
''
,
''
,
'统一权限'
,
'null'
,
'null'
,
'yaml'
,
'null'
);
COMMIT
;
-- ----------------------------
...
...
pig-upms/pig-upms-biz/pom.xml
浏览文件 @
bc32c9f2
...
...
@@ -79,20 +79,6 @@
</dependency>
</dependencies>
<profiles>
<!--开发阶段支持p6spy方便调试-->
<profile>
<id>
dev
</id>
<dependencies>
<dependency>
<groupId>
p6spy
</groupId>
<artifactId>
p6spy
</artifactId>
<version>
${p6spy.version}
</version>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<plugins>
<plugin>
...
...
pig-upms/pig-upms-biz/src/main/resources/spy.properties
已删除
100644 → 0
浏览文件 @
22424e9b
#Mybatis Plus 3.2.1以上使用
modulelist
=
com.baomidou.mybatisplus.extension.p6spy.MybatisPlusLogFactory,com.p6spy.engine.outage.P6OutageFactory
# 自定义日志打印
logMessageFormat
=
com.baomidou.mybatisplus.extension.p6spy.P6SpyLogger
#日志输出到控制台
appender
=
com.baomidou.mybatisplus.extension.p6spy.StdoutLogger
# 设置 p6spy driver 代理
deregisterdrivers
=
true
# 取消JDBC URL前缀
useprefix
=
true
# 配置记录 Log 例外,可去掉的结果集有error,info,batch,debug,statement,commit,rollback,result,resultset.
excludecategories
=
info,debug,result,commit,resultset
# 日期格式
dateformat
=
yyyy-MM-dd HH:mm:ss
# 是否开启慢SQL记录
outagedetection
=
true
# 慢SQL记录标准 2 秒
outagedetectioninterval
=
2
pom.xml
浏览文件 @
bc32c9f2
...
...
@@ -50,7 +50,6 @@
<velocity.version>
1.7
</velocity.version>
<jasypt.version>
2.1.0
</jasypt.version>
<fastjson.version>
1.2.69
</fastjson.version>
<p6spy.version>
3.9.0
</p6spy.version>
<swagger.fox.version>
2.9.2
</swagger.fox.version>
<swagger.core.version>
1.5.24
</swagger.core.version>
<security.oauth.version>
2.3.6.RELEASE
</security.oauth.version>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录