application.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. server:
  18. port: 8091
  19. spring:
  20. application:
  21. name: seata-server
  22. main:
  23. web-application-type: none
  24. logging:
  25. config: classpath:logback-spring.xml
  26. file:
  27. path: ${log.home:${user.home}/logs/seata}
  28. extend:
  29. logstash-appender:
  30. # off by default
  31. enabled: false
  32. destination: 127.0.0.1:4560
  33. kafka-appender:
  34. # off by default
  35. enabled: false
  36. bootstrap-servers: 127.0.0.1:9092
  37. topic: logback_to_logstash
  38. producer:
  39. acks: 0
  40. linger-ms: 1000
  41. max-block-ms: 0
  42. metric-appender:
  43. # off by default
  44. enabled: false
  45. seata:
  46. config:
  47. # support: nacos, consul, apollo, zk, etcd3
  48. type: nacos
  49. nacos:
  50. server-addr: 127.0.0.1:8848
  51. namespace: public
  52. group: SEATA_GROUP
  53. data-id: seataServer.properties
  54. registry:
  55. # support: nacos, eureka, redis, zk, consul, etcd3, sofa
  56. type: nacos
  57. nacos:
  58. application: seata-server
  59. server-addr: 127.0.0.1:8848
  60. group: SEATA_GROUP
  61. namespace: public
  62. cluster: default
  63. store:
  64. # support: file 、 db 、 redis 、 raft
  65. mode: db
  66. db:
  67. datasource: druid
  68. db-type: mysql
  69. driver-class-name: com.mysql.jdbc.Driver
  70. url: jdbc:mysql://127.0.0.1:3306/seata?rewriteBatchedStatements=true
  71. user: root
  72. password: hsp
  73. min-conn: 10
  74. max-conn: 100
  75. global-table: global_table
  76. branch-table: branch_table
  77. lock-table: lock_table
  78. distributed-lock-table: distributed_lock
  79. vgroup-table: vgroup_table
  80. query-limit: 1000
  81. max-wait: 5000
  82. druid:
  83. time-between-eviction-runs-millis: 120000
  84. min-evictable-idle-time-millis: 300000
  85. test-while-idle: true
  86. test-on-borrow: false
  87. keep-alive: false
  88. # server:
  89. # service-port: 8091 #If not configured, the default is '${server.port} + 1000'