logistics-integration-api-prd.yml 2.2 KB
## spring security 配置
security:
  oauth2:
    client:
      client-id: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
      client-secret: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
      scope: server
      # 默认放行url,子模块重写时application-dev.yml中的公共配置会被覆盖,所以要把公共配置中的放行url再写一次
      ignore-urls:
        - '/actuator/**'
        - '/v2/api-docs'
        - '/user/info/*'
        - '/social/info/*'
        - '/social/getsocialbytype/*'
        - '/mobile/*'
        - '/log/save'
        - '/swagger**'
        - '/swagger**/**'
        - '/webjars/springfox-swagger-ui/**'

# 数据源
spring:
  datasource:
    type: com.zaxxer.hikari.HikariDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: logistics
    password: ihyTb*^9P2.)Qw
    url: jdbc:mysql://yiru.mysql.db.com:3306/logistics_integration?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8

# swagger相关配置,覆盖全局配置
swagger:
  authorization:
    authorization-scope-list:
      - scope: 'server'
        description: 'server all'
      - scope: 'read'
        description: 'read all'
      - scope: 'write'
        description: 'access all'
# Logger Config
logging:
  level:
    om.logistics4cloud.logistics.integration.api.mapper: debug
#4px固定参数
integration:
  fourpx:
    inStockProperties:
      isPickup: 'N'
      country: 'CN'
      totalVolume: 10
      totalWeight: 10
      ocustomsService: 'D1'
      printBoxNo: 'Y'
      printBoxType: 'P'
    productProperties:
      includeBattery: 'Y'
      batteryConfig: 'NB'
      batteryType: 'OT'
      batteryPower: 1000
      batteryNumber: 1
      wrapping: 'H'
      appearance: 'RS'
      logisticsPackage: 'Y'
      packageMaterial: 'PA'
    declareProperties:
      declareCategoryId: 601084
      specification: '长方体'
      originCountry: 'CN'
      brand: '其他'
      declareType: 'I'
      currency: 'CNY'
      declareCountry: 'CN'
    outStockProperties:
      consignmentType: 'S'              #委托类型 S(标准出库) 
      stockQuality: 'G'                 #SKU库存质量 G(良好)
      cancelType: 'OT'                 #取消原因类型 OT(其它原因)