proudkids-upms-service-test.yml 2.23 KB
Newer Older
zhangy@proudkids.cn committed
1 2 3 4 5 6 7 8 9 10
server:
  port: 4000
#Redis cache 过期时间设置
redis:
  cache:
    expiration: 3600

# datasoure默认使用JDBC
spring:
  rabbitmq:
张勇 committed
11
    host: 192.168.1.83
张勇 committed
12
    port: 5672
zhangy@proudkids.cn committed
13 14 15 16 17 18 19 20 21
    username: zzq223
    password: 222222
  zipkin:
    rabbitmq:
      queue: zipkin
  sleuth:
    sampler:
      percentage: 1.0

张勇 committed
22

zhangy@proudkids.cn committed
23 24 25 26 27 28 29 30
# 分库分表支持
sharding:
  jdbc:
    defaultDataSourceName:
      type: com.zaxxer.hikari.HikariDataSource
      driver-class-name: com.mysql.jdbc.Driver
      username: proudkids
      password: pds123!@#
张勇 committed
31
      jdbc-url: jdbc:mysql://192.168.1.82:3306/proudkids_ce_test?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
zhangy@proudkids.cn committed
32 33 34 35 36 37 38
    datasource:
      names: ds
      ds:
        type: com.zaxxer.hikari.HikariDataSource
        driver-class-name: com.mysql.jdbc.Driver
        username: proudkids
        password: pds123!@#
张勇 committed
39
        jdbc-url: jdbc:mysql://192.168.1.82:3306/proudkids_ce_test?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
zhangy@proudkids.cn committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
#mybaits-plus配置,修改主键类型,mapper.xml、type 别名等
mybatis-plus:
  mapper-locations: classpath:/mapper/*Mapper.xml
  typeAliasesPackage: com.proudkids.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://123.206.94.20:9999/
  tracker-list:
    - 123.206.94.20:22122
张勇 committed
62

zhangy@proudkids.cn committed
63 64 65 66 67
qiniu:
  accessKey: hM2cBDEM0FTYzpXbigRW90kV12NhhzhFM3jCzurJ
  secretKey: ENC(xUadBts805WTXkGtxsgPEybtR3D14GFQHAPUBDEnIoYmStJftu63fldDFUhUA2W2OU3NdRR0+3A=)
  bucket: proudkidscloud
  qiniuHost: http://p0hpm86wj.bkt.clouddn.com/
张勇 committed
68

zhangy@proudkids.cn committed
69
logging:
70 71
  config: classpath:logback.xml

张勇 committed
72 73 74 75 76 77 78 79
cms:
  websites:
    - domain: http://192.168.1.81
      location: /opt/devops/www/officail/dist/
      templete: templates/
    - domain: http://192.168.1.81/dist
      location: /opt/devops/www/m/dist/
      templete: templates002/