mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 13:19:01 +08:00
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
## spring security 配置
|
|
security:
|
|
oauth2:
|
|
client:
|
|
client-id: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)
|
|
client-secret: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)
|
|
scope: server
|
|
|
|
# 数据源配置
|
|
spring:
|
|
datasource:
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
username: root
|
|
password: Bjyjht2017!@#
|
|
url: jdbc:mysql://114.116.21.191:3306/pigxx?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
|
|
jackson:
|
|
time-zone: GMT+8
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
resources:
|
|
static-locations: classpath:/static/,classpath:/views/
|
|
|
|
# mybaits 模块配置
|
|
mybatis-plus:
|
|
typeAliasesPackage: com.pig4cloud.pigx.codegen.entity
|
|
|
|
#mybaits-plus配置,修改主键类型,mapper.xml、type 别名等
|
|
mybatis-plus:
|
|
mapper-locations: classpath:/mapper/*Mapper.xml
|
|
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: false
|
|
# 逻辑删除字段
|
|
logic-delete-value: 1
|
|
logic-not-delete-value: 0
|
|
#自定义SQL注入器
|
|
sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
cache-enabled: true
|