application.yml 2.0 KB
server:
  port: 9001
# spring \u914D\u7F6E
spring:
  application:
    name: cgonms-provide
  profiles:
    active: dev
  #  mvc:
  #    static-path-pattern: /exit/**
  #  resources:
  #    #指定静态资源目录
  #    static-locations: file:../excel/
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: oracle.jdbc.OracleDriver
    url: jdbc:oracle:thin:@192.168.1.253:1522:ORCLL
    username: CGONMS
    password: vmvnv1v2

  jackson:
    default-property-inclusion: ALWAYS
    time-zone: GMT+8
    date-format: yyyy-MM-dd
  security:
    user:
      name: admin
      password: 123456
  # \u94FE\u8DEF\u8FFD\u8E2A\u914D\u7F6E
  zipkin:
    base-url: http://192.168.1.63:9411
    sleuth:
      sampler:
        probability: 1

# mybatis\u914D\u7F6E
mybatis:
  mapper-locations: classpath:mapper/*.xml
  type-aliases-package: com.sunyo.wlpt.cgonms.provide.domain

# \u65E5\u5FD7\u6253\u5370
logging:
  config: config/logback-dev.xml
  level:
    com.sunyo.wlpt.cgonms.provide.mapper: debug
logback:
  appname: cgonms-provide
  logdir: ./log


#eureka client
eureka:
  instance:
    status-page-url:  http://${eureka.instance.hostname}:${server.port}/index
    prefer-ip-address: true
    instance-id:  ${spring.cloud.client.ip-address}:${server.port}
    hostname: ${spring.cloud.client.ip-address}
    metadata-map:
      user:
        name: "admin"
        passwoed: "123456"
  client:
    healthcheck:
      enabled: true
    service-url:
      defaultZone: http://192.168.1.53:12345/eureka/

feign:
  hystrix:
    enabled: false
  client:
    config:
      default:
        connectTimeout: 1000000 # feign 的超时设置
        readTimeout: 1000000
# boot admin
management:
  endpoints:
    enabled-by-default: true
    web:
      exposure:
        include: ["*"]
  endpoint:
    health:
      show-details: always
    shutdown:
      enabled: true

path:
  # 文件夹的位置,就一个文件夹
  dir: excel

delete:
  # 删除7天之前的excel文件
  timeInterval: 604800000