Newer
Older
casic-production-safety / casic-web / src / main / resources / config / application.yml
##########################################################
##################  所有profile共有的配置  #################
##########################################################
spring:
  profiles:
    active: test42
  servlet:
    multipart:
      max-file-size: 150MB
      max-request-size: 80MB
  web:
    resources:
      static-locations: file:C:\casic\tmp\
#  redis:
#    host: localhost
#    port: 6379
#    #    password: ew5T4K3#203lwh
#    database: 3
#    serializer: org.springframework.data.redis.serializer.StringRedisSerializer
#    redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
mybatis-plus:
  configuration:
#    # 配置结果集属性为空时 是否映射返回结果
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #打印sql语句,调试用
    cache-enabled: true
###################  mybatis-plus配置  ###################
###################  guns配置  ###################
casic:
  web:
    url: http://localhost/alarm/#/realTime/page #前端地址
  swagger-open: true
  knife4j:
    groups: 系统管理:com.casic.missiles.modular.system,安全生产业务包:com.casic.missiles.modular.device,视频会议:com.casic.missiles.modular.meeting;
  kaptcha-open: false #是否开启登录时验证码 (true/false)
  muti-datasource-open: false #是否开启多数据源(true/false)
  spring-session-open: false #是否开启spring session,如果是多机环境需要开启(true/false)
  session-invalidate-time: 86400 #session失效时间(只在单机环境下生效,,多机环境在SpringSessionConfig类中配置) 单位:秒
  session-validation-interval: 900 #多久检测一次失效的session(只在单机环境下生效) 单位:秒
  no-login-urls: /user/login,/kaptcha,/config/baseConfig
  hikSdk: D:\workspace\server\keti\hiklib\HCNetSDK.dll
  hikPlay: D:\workspace\server\keti\hiklib\PlayCtrl.dll
  log:
    day: 180 #超期日志删除,日志保留天数
  file:
    uploadPath: C:\casic\tmp\
  sm:
    user:
      open: true
      cron: 0 */2 * * * *
      url: http://10.11.13.5:8088
      clientId: client_id
      clientSecret: client_secret
      grantType: grant_type
      scope: read
      defaultId:
      createStateDate: 1900-01-01
  mdm:
    wsdl: http://10.11.13.5:8088/hussarApi/services/MdmService?wsdl
    mqId: 123456-UUM #h后缀需添加 -UUM
    open: false
    corn: 0 */60 * * * *
  video:
    admin:
      role: administrator #安全管理员角色标识 安全管理员可看未定密数据
    dc:
      corn:
       refreshToken: 0 */5 * * * *
       device: 0 */20 * * * *
      open: false
      url: https://192.168.83.42:18080
      user: jtcsyh
      pwd:
    dh:
      open: false
      type: Dahua
    hik:
     open: false
     areaCorn: 0 */60 * * * *
     deviceCorn: 0 */10 * * * *
    box: #视频盒子定时清理离线配置信息
      open: true
      deviceCorn: 0 */5 * * * *
    av:
      open: false
      url: http://localhost:6909
      token: 6bcffcdb-42fe-df6c-e704-e6034dd8a5a0
      deviceCorn: 0 */1 * * * *
      deviceStatusCorn: 0 */5 * * * *
      proxyUrl: 192.168.83.42:80
    wvp: #wvp视频平台配置信息
     open: true
     url: http://192.168.83.42:80
     userName: admin
     pwd: 21232f297a57a5a743894a0e4a801fc3
server:
  servlet:
    context-path: /safe-server