application-test.yml 11.2 KB
Newer Older
yuquan.zhu committed
1 2
#生产环境
server:
284718418@qq.com committed
3
  port: 8189
yuquan.zhu committed
4 5
  servlet:
    # context-path: /YoulinghrApiV100
翁国栋 committed
6
    session:
ilal committed
7
      timeout: 2592000   # session会话过期时间
yuquan.zhu committed
8
spring:
翁国栋 committed
9 10 11
  servlet:
    multipart:
      max-file-size: 500MB
ilal committed
12
      max-request-size: 500MB
yuquan.zhu committed
13 14 15
  jpa:
    # 配置生成表 存储引擎InnoDB
    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
翁国栋 committed
16
      # database:
yuquan.zhu committed
17
    open-in-view: false
翁国栋 committed
18
      # naming:
yuquan.zhu committed
19 20 21 22
      # spring boot jpa hibernate 根据实体类生成表以及字段的命名策略
      # 无修改命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
      # 遇到大写字母 加”_”的命名 org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
      # physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
翁国栋 committed
23
    hibernate:
yuquan.zhu committed
24 25 26 27 28
      ddl-auto: update
    show-sql: true
  datasource:
    # username: root
    # password: youlingHR73!
284718418@qq.com committed
29 30
    username: root
    password: H0YouLing8T-imer0LKjhG193*
yuquan.zhu committed
31 32 33
    # username: tang
    # password: Tang123456!
    # url: jdbc:mysql://120.24.172.51:3306/youlingrc_tang?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
284718418@qq.com committed
34
    url: jdbc:mysql://120.78.162.177:3306/timer_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
yuquan.zhu committed
35 36 37 38
    # url: jdbc:mysql://192.168.172.200:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
    # url: jdbc:mysql://db.hhlsz.com:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
    driver-class-name: com.mysql.cj.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
tangzhaoqian committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
    # 下面为连接池的补充设置,应用到上面所有数据源中
    # 初始化大小,最小,最大
    initial-size: 5
    min-idle: 5
    max-active: 50
    maximum-pool-size: 80
    max-wait: 60000 # 配置获取连接等待超时的时间
    time-between-eviction-runs-millis: 300000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
    min-evictable-idle-time-millis: 1800000   # 配置一个连接在池中最小生存的时间,单位是毫秒
    validation-query: SELECT 1 FROM DUAL
    test-while-idle: true # 当连接空闲时,是否执行连接测试
    test-on-borrow: false # 当从连接池借用连接时,是否测试该连接
    test-on-return: false # 在连接归还到连接池时是否测试该连接
    # 打开PSCache,并且指定每个连接上PSCache的大小
    pool-prepared-statements: true
    # 要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true。在Druid中,不会存在Oracle下PSCache占用内存过多的问题,可以把这个数值配置大一些,比如说100
    #max-pool-prepared-statement-per-connection-size: 20
    # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
    #connect-properties:  druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
翁国栋 committed
58
    druid:
tangzhaoqian committed
59
      # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 ,不能用log4j,不然报错:Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataSource:
yuquan.zhu committed
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
      filters:  stat,slf4j
      # 配置监控服务器
      stat-view-servlet:
        login-username: Tang
        login-password: 123
        reset-enable: false
        url-pattern: /druid/*
        # 添加IP白名单
        #allow:
        # 添加IP黑名单,当白名单和黑名单重复时,黑名单优先级更高
        #deny:
      web-stat-filter:
        # 添加过滤规则
        url-pattern: /*
        # 忽略过滤格式
        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
  # 时间戳统一转换
  jackson:
     date-format: yyyy-MM-dd HH:mm:ss
  # spring boot启动打印横幅 配置
  banner:
翁国栋 committed
81
      charset: UTF-8 # Banner file encoding.
yuquan.zhu committed
82
      location: banner.txt # Banner text resource location.
翁国栋 committed
83
      image:
yuquan.zhu committed
84 85 86 87 88
         location: banner.gif # Banner image file location (jpg or png can also be used).
         width: 76 # Width of the banner image in chars.
         height: 76 # Height of the banner image in chars (default based on image height).
         margin: 2 # Left hand image margin in chars.
         invert: false # Whether images should be inverted for dark terminal themes.
翁国栋 committed
89
  mail:
邓实川 committed
90
     port: 465
91 92 93 94 95
     protocol: smtp
     #host: smtp.163.com
     host: 220.181.15.161
     username: youlingrc123@163.com
     password: RIMBNJJQNKYNVUWL
邓实川 committed
96
     default-encoding: utf-8
邓实川 committed
97
     properties:
翁国栋 committed
98
        mail:
邓实川 committed
99 100
           smtp:
              auth: true
翁国栋 committed
101
              starttls:
邓实川 committed
102 103 104 105
                 enable: true
                 required: true
              ssl: # SSL Config
                 enable: true
翁国栋 committed
106
              socketFactory:
邓实川 committed
107 108
                 port: 465
                 class: javax.net.ssl.SSLSocketFactor
109
  redis:
284718418@qq.com committed
110 111 112
    database: 4 # Redis数据库索引(默认为0),如果设置为1,那么存入的key-value都存放在select 1中
    host: 120.78.162.177
    port: 7788
113
    password: (!0YouLingRcRedis0!)
114 115 116 117 118 119 120 121 122 123 124 125 126
    max-wait: 30000    # 连接池最大阻塞等待时间(使用负值表示没有限制)
    max-active: 100   # 连接池最大连接数(使用负值表示没有限制)
    max-idle: 20     # 连接池中的最大空闲连接
    min-idle: 0     # 连接池中的最小空闲连接
    timeout: 5000   # 连接超时
      #password: 123456 # 密码,默认密码为空
      #cluster:       # 集群配置
    #nodes: 127.0.0.1:6381,127.0.0.1:6382,127.0.0.1:6383,127.0.0.1:6384,127.0.0.1:6385,127.0.0.1:6386
    #max-redirects: 2  # 最大重定向次数
  devtools:
    restart:
      poll-interval: 3000ms
      quiet-period: 2999ms
yuquan.zhu committed
127 128 129 130 131 132

 # mybatis-plus
mybatis-plus:
  mapper-locations: classpath:mapping/**/*Mapper.xml   # dao到xml文件映射
  type-aliases-package: cn.timer.api.bean           # xml中#全局类名别名
  configuration:
284718418@qq.com committed
133
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl   # sql日志打印
yuquan.zhu committed
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
    call-setters-on-nulls: true                     # Map做返回体时  字段值为null依然返回
    cache-enabled: true
  global-config:
    db-config:
      #主键类型  0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
      #id-type: uuid
      id-type: auto
      #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
      # field-strategy: not_null
      #驼峰下划线转换
      table-underline: true
      #逻辑删除配置
      #logic-delete-value: 0
      #logic-not-delete-value: 1
 # 分页插件
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql
翁国栋 committed
154

yuquan.zhu committed
155 156 157 158
#showSql
logging:
  level:
    root: info
159
    cn.timer.api.dao: info
yuquan.zhu committed
160 161
  pattern:
    console: '--%p--%m%n'
翁国栋 committed
162

yuquan.zhu committed
163 164 165 166
#swagger:
#  ui-config:
#    operations-sorter: method   # 它提供了两个配置项:alpha和method,分别代表了按字母表排序以及按方法定义顺序排序

167
config-8timer:
ilal committed
168
  environmental-science: test
ilal committed
169
  expiration_time: 2 #扫码登录过期时长
284718418@qq.com committed
170 171
  machine8timerUrl: 'http://test-8timer-fk.youlingrc.com'
  #machine8timerUrl: 'http://172.18.179.36:8195'
284718418@qq.com committed
172
  #machine8timerUrl: 'http://192.168.3.48:8195'
lal committed
173
  authentication-code: '888888'
ilal committed
174
  prescription: 8 #一天工作8小时
175
  register-free-time: 90   #系统赠送时间
176
  register-company-max-num: 100
177
  register-childAccount-max-num: 10
178
  Aliyun:    # 阿里云
284718418@qq.com committed
179
    PROJECT_NAME: 8小时协同办公 #8小时人事管家qyzx_oper_log
180 181 182 183 184 185 186 187 188
    REGION_ID: cn-shenzhen
    ACCESSKEY_ID: LTAI4FuaShJWQ1dggsFWG5CC
    SECRET: EJ6qToT4T4u0B5Rb6qrta9WkyGHvGR
    endpoint: http://oss-cn-shenzhen.aliyuncs.com
    bucketName: 8time-v2
    bucketName_pri: 8time-v2-private
    project_package: 8timer2.0/
    expirationTime: 3153600000000L
    expirationTime_pri: 600000L
284718418@qq.com committed
189
    RESUMESDK_APPCODE: 17e3b67b02ab4bef967025cc4938c072 #ResumeSDK简历解析 AppCode
190
  esign: # e签宝
191 192
     callbackUrl: 'https://test-8timer-pc.youlingrc.com/callback/esign/dev'
     redirectUrl: 'http://test-8timer-pc.youlingrc.com/#/ElecCon/index'
邓实川 committed
193 194 195
   # host: https://smlopenapi.esign.cn
   # PROJECT_ID: 4438775940
   # PROJECT_SECRET: 7b100813cca2746081c57837855ac5af
196 197 198
  remind:   #合同提醒时间 默认小于等于1天会提醒+三个配置项
    one: 3
    two: 7
199
    three: 30
邓实川 committed
200
  init-password: 123456
翁国栋 committed
201

202 203 204
  # 创建企业默认添加讯息
  qyxx:
     title: '欢迎来到8小时'
205
     cover: 'https://8time-v2.oss-cn-shenzhen.aliyuncs.com/8timer2.0/common/qyxx/welcome/%E6%AC%A2%E8%BF%8E%E5%9B%BE.png'
206 207
     summary: '<h1>欢迎来到8小时!可先前往组织管理-组织架构添加公司架构及岗位,再前往员工管理-员工名册添加企业员工。</h1>'
     author: 'System'
翁国栋 committed
208

邓实川 committed
209 210
  # 客户管理导入服务器保存路径
  crm-excel:
ilal committed
211
     realPath: '/data/crm-excel/'
284718418@qq.com committed
212

213 214 215 216 217
  # 百度人才智库(TIC)
  baidu-tic:
    appid: XOATkGqX6LvCW3i3Eqd5rg6h
    secret: UqqNAF1nltMjAOz9yxqHPjZlnjtC2gSS

218 219 220 221 222 223 224
  # 文件存储地址配置 file type:aliyun-oss,physics-oss
  # 文件存储地址类型:aliyun-oss(阿里云OSS),physics-oss(物理机器OSS)
  # 默认存储物理机器OSS
  file-address:
    type: physics-oss
    #type: aliyun-oss

284718418@qq.com committed
225 226 227
#导出zip临时地址
zip:
 path: '/data/crm-zip/'
284718418@qq.com committed
228 229 230

# base_api_url
BASE_API_URL: 'http://test-8timer-api.youlingrc.com'
231 232 233 234 235 236 237 238 239 240
#sftp 配置
sftp:
  client:
    protocol: 'sftp'
    host: '120.78.162.177'
    port: '22'
    username: 'root'
    password: 'fksdlfjs(*&&%HGgjfkdjsfhksh9781283KFHFFGHghhndbv##2@'
    root: '/home'
    sessionStrictHostKeyChecking: 'no'
241 242
    sessionConnectTimeout: '15000'
    channelConnectedTimeout: '15000'
243 244 245
    serverUrl: 'https://test-img.8timer.cn'
    targetPath: '/disk'
    reservedName: false
翁国栋 committed
246

247 248 249 250 251 252 253 254 255
#微信公众号(服务号)
wxgzh:
  appid: 'wxd331ab19a67e2319'
  appSecret: '31259f6fee0c0771d6f48c3d5159c551'
  #我方token 在微信公众号基本配置里面配置( token = 8timer123 md5加密得)
  token: 'af37997effca937229453180e830b164'
  #消息加解密密钥
  encodingAesKey: 'chAbt69dLAtk8HH0oGMuZwHzK2SuhnxZI5Jbzc4nNzX'

翁国栋 committed
256
insure:
翁国栋 committed
257
  appid: '1002303100602312445'
翁国栋 committed
258
  secret: 'acb329868c31d5b3ba03de40dac13dd9'
翁国栋 committed
259
  uploadUrl: 'http://sandbox.portal.unistar-ins.com/service/Home/Index/fileUpload'
翁国栋 committed
260
  insuredUrl: 'http://sandbox.portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
翁国栋 committed
261
  getPolicyUrl: 'http://sandbox.portal.unistar-ins.com/issuing//Home/Index/index'
262 263
  #查询保单信息
  policyDetail: 'http://sandbox.portal.unistar-ins.com/issuing/Home/Index/policy'
翁国栋 committed
264 265 266 267
  createQuote: 'http://sandbox.portal.unistar-ins.com/mall/Home/Index/createQuote'
  toPayUrl: 'http://sandbox.portal.unistar-ins.com/mall/Home/Pay/toPay'
  batchToPayUrl: 'http://sandbox.portal.unistar-ins.com/fuli/Home/ImportPay/set_import_pay'

268 269
  #保全
  appidq: '1000115041006006938'
翁国栋 committed
270
  secretq: '6ba1bf4aa0bd14368c95ff0b9934a17b'
271 272
  uploadUrlq: 'http://sandbox.portal.unistar-ins.com/fuli/Home/Index/file_upload'
  batchUrl: 'http://sandbox.portal.unistar-ins.com/fuli/Home/WelfareProduct/batch_declare'
翁国栋 committed
273
  cancelPayment: 'http://sandbox.portal.unistar-ins.com/fuli/Home/OrderImport/order_import_set'
274

275 276 277 278 279 280 281

youling:
  serverUrl: 'http://227387db45.51vip.biz'

#h5服务地址
h5:
  url: 'http://javays.com'
282

283

翁国栋 committed
284