1 Star 0 Fork 2.7K

lrw/pig-config

forked from 罗文秀/pig-config 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pig-upms-service-dev.yml 2.19 KB
一键复制 编辑 原始数据 按行查看 历史
lrw 提交于 2019-03-05 13:11 . 更新 pig-upms-service-dev.yml
server:
port: 4000
#Redis cache 过期时间设置
redis:
cache:
expiration: 3600
# sleuth配置
spring:
zipkin:
rabbitmq:
queue: zipkin
sleuth:
sampler:
percentage: 0.2
# 分库分表支持
sharding:
jdbc:
defaultDataSourceName:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 123456
jdbc-url: jdbc:mysql://localhost:3306/na?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
datasource:
names: ds
ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 123456
jdbc-url: jdbc:mysql://localhost:3306/na?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
config:
sharding:
tables:
sys_log:
actual-data-nodes: ds.sys_log_${0..1}
table-strategy:
inline:
sharding-column: id
algorithm-expression: sys_log_${id % 2}
key-generator-column-name: id
#mybaits-plus配置,修改主键类型,mapper.xml、type 别名等
mybatis-plus:
mapper-locations: classpath*:/mapper/**/*Mapper.xml
typeAliasesPackage: com.github.pig.admin.model.entity
global-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: 0
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: 1
#驼峰下划线转换
db-column-underline: true
#刷新mapper 调试神器
refresh-mapper: true
#数据库大写下划线转换
#capital-mode: true
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
fdfs:
file-host: http://127.0.0.1/
tracker-list:
- 127.0.0.1:22122
pdfUrl:
OriginalFile: /home/pdfTemplate/template
urlUrl: /home/pdfTemplate/pdfUrl/
# 七牛OSS 配置
# qiniu:
# accessKey: hM2cBDEM0FTYzpXbigRW90kV12NhhzhFM3jCzurJ
# secretKey: ENC(HM/K0KmtFoZSBhGDEA0Ez71ePTncZlQ954DfLNMZuOftKZq+2WR+dCXH9QEsf768q9wwd92RXLE=)
# bucket: pigcloud
# qiniuHost: http://p0hpm86wj.bkt.clouddn.com/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wqeqweqweee/pig-config.git
git@gitee.com:wqeqweqweee/pig-config.git
wqeqweqweee
pig-config
pig-config
dev

搜索帮助

0d507c66 1850385 C8b1a773 1850385