sqlserver yml配置文件

server:
  port: 8075
  servlet:
    context-path: /share
spring:
  application:
    name: zh-share
  datasource:
#    url: jdbc:sqlserver://10.0.0.3:1433;DatabaseName=ZHGJ
#    url: jdbc:sqlserver://124.192.234.186:4433;DatabaseName=ZHGJ
#    username: sa
#    password: sa@2018
    url: jdbc:sqlserver://117.14.55.74:4433;DatabaseName=ZHJT
    username: sa
    password: sa@2019
    driver-class:  com.microsoft.sqlserver.jdbc.SQLServerDriver
    name: datasource
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      initial-size: 10
      max-active: 100
      max-wait: 60000
      min-idle: 10
      validation-query: SELECT 1
      test-on-borrow: false
      test-on-return: false
      min-evictable-idle-time-millis: 300000
      test-while-idle: true
      time-between-eviction-runs-millis: 30000
      max-pool-prepared-statement-per-connection-size: 20
      pool-prepared-statements: true
      max-open-prepared-statements: 20
  data:
    mongodb:
      uri: mongodb://10.0.2.85:27017/zh-mongodb
  servlet:
    multipart:
      max-file-size: 100MB
      max-request-size: 100MB
  redis:
    host: 10.0.2.86
    port: 6379
  main:
    allow-bean-definition-overriding: true
  jackson:
    date-format: yyyy-MM-dd
    time-zone: GMT+8
    serialization:
      write-dates-as-timestamps: false
pagehelper:
  reasonable: true
  support-methods-arguments: true
  page-size-zero: true
mybatis:
  mapper-locations: classpath:mapper/*.xml
  type-aliases-package: com.graphsafe.api.model.share.po
  configuration:
      log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
eureka:
  client:
    registerWithEureka: true #服务注册开关
    fetchRegistry: true #服务发现开关
    serviceUrl: #Eureka客户端与Eureka服务端进行交互的地址,多个中间用逗号分隔
      defaultZone: ${EUREKA_SERVER:http://localhost:8073/eureka/}
  instance:
    prefer-ip-address:  true  #将自己的ip地址注册到Eureka服务中
    ip-address: ${IP_ADDRESS:127.0.0.1}
    instance-id: ${spring.application.name}:${server.port} #指定实例id
ribbon:
  MaxAutoRetries: 2 #最大重试次数,当Eureka中可以找到服务,但是服务连不上时将会重试,如果eureka中找不到服务则直接走断路器
  MaxAutoRetriesNextServer: 3 #切换实例的重试次数
  OkToRetryOnAllOperations: false  #对所有操作请求都进行重试,如果是get则可以,如果是post,put等操作没有实现幂等的情况下是很危险的,所以设置为false
  ConnectTimeout: 5000  #请求连接的超时时间
  ReadTimeout: 6000 #请求处理的超时时间
logging:
  level:
    com.zhjt.share.mapper: debug

你可能感兴趣的:(sqlserver yml配置文件)