1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- spring:
- datasource:
- type: com.zaxxer.hikari.HikariDataSource
- driver-class-name: com.mysql.jdbc.Driver
- hikari:
- minimum-idle: 1
- maximum-pool-size: 6
- auto-commit: true
- idle-timeout: 60000
- pool-name: DatebookHikariCP
- max-lifetime: 1800000
- connection-timeout: 30000
- connection-test-query: select 1
- boot:
- admin:
- context-path: /admin
- main:
- allow-bean-definition-overriding: true
- mybatis-plus:
- mapper-locations: classpath*:mapper/**/*.xml
- global-config:
- db-config:
- id-type: auto
- table-underline: true
- column-like: true
- refresh: true
- configuration:
- map-underscore-to-camel-case: true
- cache-enabled: true #配置的缓存的全局开关
- lazyLoadingEnabled: true #延时加载的开关
- multipleResultSetsEnabled: true #延时加载一个属性时会加载该对象全部属性,否则按需加载属性
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- #服务注册于发现配置
- eureka:
- instance:
- hostname: localhost
- prefer-ip-address: true
- lease-renewal-interval-in-seconds: 15
- lease-expiration-duration-in-seconds: 32
- ip-address: 192.168.1.133
- metadata-map:
- startup: ${random.int}
- tags: config
- client:
- register-with-eureka: true
- fetch-registry: true
- service-url:
- defaultZone: http://envir:envir@${eureka.instance.ip-address}:${server.port}/eureka/
- registry-fetch-interval-seconds: 5
- instance-info-replication-interval-seconds: 20
- initial-instance-info-replication-interval-seconds: 45
- eureka-server-read-timeout-seconds: 10
- eureka-server-connect-timeout-seconds: 8
- server:
- enable-self-preservation: false
- eviction-interval-timer-in-ms: 60000
- management:
- endpoints:
- web:
- exposure:
- include: '*'
- endpoint:
- health:
- show-details: always
- logging:
- path: ./.logs
|