62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
# 盘古用户平台配置
|
|
server:
|
|
port: 8080
|
|
servlet:
|
|
context-path: /
|
|
|
|
spring:
|
|
application:
|
|
name: pangu-admin
|
|
profiles:
|
|
active: dev
|
|
# 数据源配置(使用 courier_test 数据库)
|
|
datasource:
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://8.148.25.55:3306/pguser-db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
username: root
|
|
password: aly2024A
|
|
druid:
|
|
initial-size: 5
|
|
min-idle: 5
|
|
max-active: 20
|
|
max-wait: 60000
|
|
time-between-eviction-runs-millis: 60000
|
|
min-evictable-idle-time-millis: 300000
|
|
validation-query: SELECT 1
|
|
test-while-idle: true
|
|
test-on-borrow: false
|
|
test-on-return: false
|
|
# Redis 配置
|
|
redis:
|
|
host: 8.148.25.55
|
|
port: 6379
|
|
database: 2
|
|
password: aly2024A
|
|
timeout: 10000
|
|
# Jackson 配置
|
|
jackson:
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
time-zone: Asia/Shanghai
|
|
|
|
# MyBatis Plus 配置
|
|
mybatis-plus:
|
|
mapper-locations: classpath*:mapper/**/*.xml
|
|
type-aliases-package: com.pangu.**.domain
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
# PageHelper 配置
|
|
pagehelper:
|
|
helper-dialect: mysql
|
|
reasonable: true
|
|
support-methods-arguments: true
|
|
params: count=countSql
|
|
|
|
# 日志配置
|
|
logging:
|
|
level:
|
|
com.pangu: debug
|
|
org.springframework: warn
|