spring:
|
config:
|
activate:
|
on-profile: local
|
autoconfigure:
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
token:
|
secret: iymGhx1XkAAHrex2Zf4ASbiD9P2ksTam
|
|
# 以下为本地数据库/中间件配置,后续迁移至 Nacos
|
redis:
|
database: 99
|
host: r-bp1ip8die60uuo3ovypd.redis.rds.aliyuncs.com
|
password: syAktm2x9uDusoF_
|
port: 6379
|
shardingsphere:
|
props:
|
sql-show: true
|
sql-simple: true
|
datasource:
|
names: xp0
|
xp0:
|
type: com.alibaba.druid.pool.DruidDataSource
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
url: jdbc:mysql://pc-bp1o444934f546768po.rwlb.rds.aliyuncs.com:3306/xp_rt_operation?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
username: xp_rt_operation
|
password: g0Tw2f_KoNlmW21M
|
druid:
|
initial-size: 10
|
min-idle: 10
|
max-active: 100
|
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
|
pool-prepared-statements: true
|
max-pool-prepared-statement-per-connection-size: 20
|
filters: stat,wall,log4j
|
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
remove-abandoned: true
|
remove-abandoned-timeout: 1800
|
log-abandoned: true
|
stat-view-servlet:
|
enabled: true
|
url-pattern: /druid/*
|
login-username: admin
|
login-password: admin
|
reset-enable: false
|
wall:
|
config:
|
multi-statement-allow: false
|
rules:
|
sharding:
|
tables:
|
sys_oper_log:
|
actual-data-nodes: xp0.sys_oper_log_${0..9}
|
table-strategy:
|
standard:
|
sharding-column: userId
|
sharding-algorithm-name: sys-oper-log-inline
|
key-generate-strategy:
|
column: oper_id
|
key-generator-name: snowflake
|
xp_agreement_app_user:
|
actual-data-nodes: xp0.xp_agreement_app_user_${0..9}
|
table-strategy:
|
standard:
|
sharding-column: app_user_id
|
sharding-algorithm-name: xp-agreement-app-user-inline
|
key-generate-strategy:
|
column: id
|
key-generator-name: snowflake
|
xp_point:
|
actual-data-nodes: xp0.xp_point_${0..9}
|
table-strategy:
|
standard:
|
sharding-column: electronic_area_id
|
sharding-algorithm-name: xp-point-inline
|
key-generate-strategy:
|
column: id
|
key-generator-name: snowflake
|
sharding-algorithms:
|
sys-oper-log-inline:
|
type: INLINE
|
props:
|
algorithm-expression: sys_oper_log_${userId % 10}
|
xp-agreement-app-user-inline:
|
type: INLINE
|
props:
|
algorithm-expression: xp_agreement_app_user_${app_user_id % 10}
|
xp-point-inline:
|
type: INLINE
|
props:
|
algorithm-expression: xp_point_${electronic_area_id % 10}
|
key-generators:
|
snowflake:
|
type: SNOWFLAKE
|
|
|
# swagger配置
|
swagger:
|
title: 地图模块接口文档
|
enabled: true
|
license: Powered By xiaopeng
|
licenseUrl: http://127.0.0.1:5800/doc.html
|
|
seata:
|
enabled: false
|
|
# 阿里云 OSS 配置(ROBOTAXI ODD 图层上传)
|
aliyun:
|
oss:
|
enabled: true
|
endpoint: http://oss-cn-wulanchabu.aliyuncs.com
|
access-key-id: ${ALIYUN_OSS_ACCESS_KEY_ID:}
|
access-key-secret: ${ALIYUN_OSS_ACCESS_KEY_SECRET:}
|
bucket-name: cngp-crowdsourcing
|
path-prefix: ROBOTAXI_ODD_layer
|
# 环境:test(测试)、staging(预发)、prod(生产),支持 ${OSS_ENV:test} 或直接写死
|
env: ${OSS_ENV:test}
|
|
# ADC VIN 转 UUID 盐值配置
|
adc:
|
vin:
|
salt1: ${VIN_SALT1:}
|
salt2: ${VIN_SALT2:}
|
|
map:
|
api-key: 66ae577f63898dae3016d599fda57221
|
urls:
|
weather: https://restapi.amap.com/v3/weather/weatherInfo?key=%s&city=%s
|
route-price: https://tsapi.amap.com/v1/route/price
|
route-query: https://tsapi.amap.com/v1/route/query/routeid
|
reverse-geocode: https://restapi.amap.com/v3/geocode/regeo
|
geocode: https://restapi.amap.com/v3/geocode/geo
|
walking: https://restapi.amap.com/v3/direction/walking
|
ip: https://restapi.amap.com/v3/ip
|
|
holiday:
|
api:
|
url: https://publicapi.xiaoai.me/holiday/day?date=
|