You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

1 month ago
server:
port: 8081
spring:
application:
name: crm-auth
datasource:
url: jdbc:mysql://localhost:3306/crm?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: update
# 只建表,不接管运行时(CRUD 全部走 MyBatis-Plus)
open-in-view: false
database-platform: org.hibernate.dialect.MySQLDialect
data:
redis:
host: localhost
port: 6379
database: 0
# password:
# MyBatis-Plus:逻辑删除全局配置(deleted=0 未删,1 已删)
mybatis-plus:
global-config:
db-config:
logic-delete-field: deleted
logic-not-delete-value: 0
logic-delete-value: 1
configuration:
map-underscore-to-camel-case: true
# 雪花 ID(多实例必须错开 worker-id)
crm:
snowflake:
worker-id: 0
datacenter-id: 0
auth:
jwt:
# 生产环境务必用环境变量覆盖为至少 32 位随机串
secret: ${CRM_JWT_SECRET:crm-default-secret-change-me-in-prod!!}
ttl-days: 7
dingtalk:
client-id: ${DINGTALK_CLIENT_ID:dingikqv3al2koirnku7}
client-secret: ${DINGTALK_CLIENT_SECRET:VVlS2GaBdibboTi3l80wvXufTaYxlCHWaLDtJKd9APT37td2II-cosFE_-WkVGIU}
logging:
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%X{traceId}] %-5level %logger{36} - %msg%n"