application-dev.yml 5.06 KB
Newer Older
hanzepeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
#开发环境
server:
  port: 9003
  # session失效时间
  servlet:
    session:
      timeout: 36000s
    encoding:
      force: true
      enabled: true
      charset: UTF-8
#jar外部静态目录,dev改成自己的前端路径或者前端npm启动就行
mobdna:
  profile: E:\reYunProject\MobDNA-web\dist
user:
  dir: /data/application/temp_file
## 专门针对 Controller层接口路径前缀全局配置
api:
  path:
    global-prefix: api
    report-prefix: api/report
    openApi-cp-Prefix: openapi/cp
spring:
  profiles:
    include: errorcode,sysconfig,common
  #需要把自定义的路径添加到static-locations后面,原本的静态访问路径也要加上不然原本的静态资源会访问不到。
  resources:
    static-locations: classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, classpath:/public/, file:${mobdna.profile}
  #json数据 日期 格式化
  jackson:
    date-format: "yyyy-MM-dd HH:mm:ss"
    time-zone: GMT+8
  # 数据源
  datasource:
    mob:
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://10.2.20.32:3306/mob_dna?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=UTC&serverTimezone=Asia/Shanghai
      username: root
      password: reyun.123
    report:
      driver-class-name: com.mysql.cj.jdbc.Driver
      jdbc-url: jdbc:mysql://10.2.20.32:3306/yy-flink?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=UTC&serverTimezone=Asia/Shanghai
      username: root
      password: reyun.123
    # Druid连接池配置
    type: com.alibaba.druid.pool.DruidDataSource
    # 初始化
    initialSize: 5
    # 最大
    maxActive: 20
    # 最小
    minIdle: 5
    # 最大连接等待超时时间
    maxWait: 60000
    # 打开PSCache,并且指定每个连接PSCache的大小
    poolPreparedStatements: true
    maxPoolPreparedStatementPerConnectionSize: 20
    validationQuery: select 'x'
    testWhileIdle: true
    testOnBorrow: false
    testOnReturn: false
    # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
    timeBetweenEvictionRunsMillis: 60000
    # 配置一个连接在池中最小生存的时间,单位是毫秒
    minEvictableIdleTimeMillis: 300000
    # 配置监控统计拦截的filters,去掉后监控界面sql将无法统计,'wall'用于防火墙
    filters: stat, wall, slf4j
    # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  main:
    allow-bean-definition-overriding: true

  # 文件上传大小
  servlet:
    multipart:
      # 单个文件大小
      max-file-size: 50MB
      # 一次传多个文件的总大小
      max-request-size: 100MB

  #redis
  redis:
    database: 0
    # Redis服务器地址
    host: 127.0.0.1
    port: 6379
    password:
    timeout: 5000ms

    jedis:
      pool:
        # 连接池中的最大连接数
        max-active: 8
        # 连接池中的最大空闲连接
        max-idle: 8
        min-idle: 0
        max-wait: -1ms
  # 取消spring对freemarker默认templates目录的检测
  freemarker:
    check-template-location: false
  jpa:
    open-in-view: false

###   Mybatis Config  ###
mybatis:
  check-config-location: true
  typeAliasesPackage: com.reyun.saas.**.domain
  mapperLocations: classpath:mapper/**/*.xml
  type-handlers-package: com.reyun.saas.common.mybatis.handler.*

## Pagehelper
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

###   通用 Mapper    ###
mapper:
  IDENTITY: mysql
  notEmpty: false
  mappers:
    - com.reyun.saas.common.core.Mapper
    - com.reyun.saas.common.core.TkMapper

# 日志
logging:
  level:
    root: info
    com.reyun: debug
  file:
    name: mob-dna.log
    path: /data/logs/mob-dna
swagger:
  title: 接口文档
  basepackage: com.reyun.saas
  version: 1.0.0

S3:
  region: cn-north-1
  bucketName: mob-test
  accessKeyId: AKIAOS2UEXIFNVER2O6A
  accessKeySecret: 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

#导出工单线程池配置
WorkOrderThreadPool:
  corePollSize: 16
  maxPollSize: 32
  #空闲线程等待时间单位为秒
  leisureAwaitTime: 5
  queueSize: 100

#临时文件存放位置
file:
  tempFilePath: /data/application/mobdna/temp

#单点登录系统
yuc:
  #单点登录服务器地址(注意本服务会校验ip  如果单点登录系统更换ip这里也要修改)
  host: 10.2.12.94
#  host: 127.0.0.1
  #单点登录系统校验用户url
  checkUrl: http://10.2.12.94:9030/auth/getUserInfoByToken

#发送邮件配置
sendCloud:
  isPro: false
  mail:
    url: http://api.sendcloud.net/apiv2/mail/send
    apiUser: TrackingIO_mail_service
    apiKey: I9OlVXux7qwPpgge
    fromMail: mobdna@reyun.com
    content_type: text/plain;charset\=GBK
  sms:
    url: http://www.sendcloud.net/smsapi/send
    smsUser: MobDNA_mobile
    smsKey: 9wtq4wCOODCsEoEL9uvpjWzTs2R5ziSD
    warningModel: 804415

#实时的redis集群地址
realTime:
  redisCluster:
    nodes: 10.2.20.21:6379,10.2.20.22:6379,10.2.20.23:6379