config-map.yaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. kind: ConfigMap
  2. apiVersion: v1
  3. metadata:
  4. name: cloud-yysj-order-query
  5. data:
  6. application.yaml: |-
  7. spring:
  8. datasource:
  9. url: jdbc:mysql://10.8.17.119:32196/cloud-yysj?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
  10. username: root
  11. driver-class-name: com.mysql.cj.jdbc.Driver
  12. type: com.zaxxer.hikari.HikariDataSource
  13. hikari:
  14. minimum-idle: 5
  15. maximum-pool-size: 15
  16. auto-commit: true
  17. idle-timeout: 30000
  18. pool-name: DatebookHikariCP
  19. max-lifetime: 1800000
  20. connection-timeout: 30000
  21. password: 123456
  22. mybatis-plus:
  23. configuration:
  24. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  25. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  26. # 驼峰下划线转换
  27. map-underscore-to-camel-case: false
  28. # 配置的缓存的全局开关
  29. cache-enabled: true
  30. # 延时加载的开关
  31. lazy-loading-enabled: true
  32. # 开启的话,延时加载一个属性时会加载该对象全部属性,否则按需加载属性
  33. multiple-result-sets-enabled: true
  34. use-generated-keys: true
  35. default-statement-timeout: 60
  36. default-fetch-size: 100
  37. management:
  38. server:
  39. port: 8081
  40. endpoint:
  41. health:
  42. show-details: always
  43. endpoints:
  44. enabled-by-default: true
  45. web:
  46. exposure:
  47. include: "*"
  48. eureka:
  49. instance:
  50. instance-id: ${spring.cloud.client.ip-address}:${server.port}
  51. prefer-ip-address: true
  52. client:
  53. service-url:
  54. defaultZone: http://10.8.18.172:31102/eureka
  55. elasticsearch:
  56. schema: http
  57. address: 10.8.17.119:32482
  58. #address: 192.168.16.41:30002,192.168.16.41:31821,192.168.16.41:30097
  59. connectTimeout: 5000
  60. socketTimeout: 5000
  61. connectionRequestTimeout: 5000
  62. maxConnectNum: 100
  63. maxConnectPerRoute: 100
  64. index:
  65. yysjFirst: access-yysj-gateway-first-log-cloud-yysj*
  66. yysjSecond: access-yysj-gateway-second-log-cloud-yysj*
  67. sjjh: iov_sjjh_access_test1*