application.yml 5.2 KB
#上传文件的路径,要带斜杠
web:
  upload-path: upload/
server:
  port: 10006
  servlet:
    context-path: ${SERVER_CONTEXTPATH:}
spring:
  profiles:
    active: dev
  mvc:
    #静态资源,设置上传文件的访问,
    static-path-pattern: /**
#    view:
#      suffix: .html
##      prefix: /templates/
  thymeleaf:
    cache: false
    mode: LEGACYHTML5

  activiti:
#    检查bpmn文件
    check-process-definitions: false
    #创建任务流表,创建完成后关闭,每次应用启动不检查Activiti数据表是否存在及版本号是否匹配,提升应用启动速度
    database-schema-update: true
    #保存历史数据级别设置为full最高级别,便于历史数据的追溯
    history-level: full
    process-definition-location-prefix:

  jpa:
    hibernate:
      ddl-auto: update
    show-sql: true
  resources:
    static-locations: classpath:/META-INF/resources/,classpath:/bin,classpath:/static,classpath:/resources/,classpath:/public/,file:${web.upload-path}

  application:
    name: HQPT-PROCESS

  jackson:
    serialization:
      FAIL_ON_EMPTY_BEANS: false
    #springboot2.0之后会把Date类型字段自动给转成UTC字符串 如:1990-11-26T16:00:00.000+0000,如果想转成时间戳在application.properties配置文件增加以下配置
    date-format: yyyy-MM-dd HH:mm:ss
    #时区必须要设置
    time-zone: GMT+8
    #ALWAYS的意思是即时属性为null,仍然也会输出这个key
    default-property-inclusion: always

  cloud:
  #eureka主机名,会在控制页面中显示
  #DEV环境关闭注册。
    features:
      enabled: true
    discovery:
      enabled: true
    service-registry:
      auto-registration:
        enabled: true

  datasource:
        type: com.alibaba.druid.pool.DruidDataSource
        #oracle
#        driver-class-name: oracle.jdbc.OracleDriver
#        url: jdbc:oracle:thin:@192.168.1.253:1522:ORCLL
#        username: CGONMS
#        password: vmvnv1v2
        #spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码
        #url: jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8&nullCatalogMeansCurrent=true
        url: jdbc:mysql://118.31.66.166:3306/HQPT_USER?useUnicode=true&characterEncoding=utf8&nullCatalogMeansCurrent=true
        username: 110
        password: QAHqCJf2kFYCLirM
        driver-class-name: com.mysql.cj.jdbc.Driver
        max-idle: 20
        max-wait: 10000
        min-idle: 5
        initial-size: 5
        #配置初始化大小/最小/最大
        druid:
          initial-size: 1
          min-idle: 1
          #最大并发连接数
          max-active: 40
          #获取连接等待超时时间
          max-wait: 60000
          #一个连接在池中最小生存的时间
          min-evictable-idle-time-millis: 300000
          #间隔多久进行一次检测,检测需要关闭的空闲连接
          time-between-eviction-runs-millis: 60000
          #mysql
          validation-query: SELECT 1 FROM DUAL
          #oracle
#          validation-query: SELECT 'x' FROM DUAL
          test-while-idle: true
          test-on-borrow: false
          test-on-return: false
          default-auto-commit: true

eureka:
  instance:
    #eureka服务器页面中status的请求路径
    status-page-url:  http://${eureka.instance.hostname}:${server.port}/
    prefer-ip-address: true
    instance-id:  ${spring.cloud.client.ip-address}:${server.port}
    hostname: ${spring.cloud.client.ip-address}
    lease-renewal-interval-in-seconds: 15
    lease-expiration-duration-in-seconds: 45
  client:
    #eureka注册中心服务器地址
    service-url:
#      defaultZone: http://127.0.0.1:12345/eureka/
      defaultZone: http://192.168.1.53:12345/eureka/
    registry-fetch-interval-seconds:  30




mybatis:
  mapper-locations: classpath:mapping/*.xml
  type-aliases-package: com.sunyo.customer.order.activity.model
pagehelper:
  #auto-dialect: true
  #auto-runtime-dialect: true
  helper-dialect: mysql
  reasonable: true
  support-methods-arguments: true
  params: count=countSql

#debug配置,debug或者为true的时候,logback才会记录和写入日志文件
trace: false
debug: false

logging:
  file:
    path: ./logs/
    name: system.log
  config: classpath:logback-dev.xml
  #转移到logback配置文件中
  #level:
    #org.apache.tomcat: info
    #com.tianbo.warehouse.dao: DEBUG
    #org.springframework.security: trace
  #日志配置,输出到文本,
#Java Web Token 时效时间,单位秒
jwt:
  max-alive: 300

#自定义配置
custom:
  #进港放行回执读取目录
  receptDirectory: /Users/mrz/Downloads/rdp_temp/logs/回执报文样例/20191104
  #回执解析成功后的备份目录
  receptBakDir: /Users/mrz/Downloads/rdp_temp/logs/success
  #解析错误报文的备份目录
  errBakDir: /Users/mrz/Downloads/rdp_temp/logs/error
  #回执转发目录
  transmitDir: /Users/mrz/Downloads/rdp_temp/logs/transmit
  #匹配技术回执正则
  delTechnologyReceptMatch: CN_MT(.*)_1P0_460470678920X_(.*).xml
devops:
  dir:
    singlewindow-tcs-recept: D:\TCSSingleWindow\recive
    tianbo-tcs-recept: D:\Data\Receive
    cfps-subscribe-dir: D:\系统部署\imf_Warehouse_reader\xmlFromImf
#10079