mirror of https://github.com/jeecgboot/jeecg-boot
Seata示例启动不了 #4748
parent
eaf3e32fdd
commit
793295a8fe
|
@ -5,17 +5,18 @@ spring:
|
||||||
name: seata-account
|
name: seata-account
|
||||||
main:
|
main:
|
||||||
allow-bean-definition-overriding: true
|
allow-bean-definition-overriding: true
|
||||||
|
autoconfigure:
|
||||||
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
||||||
datasource:
|
datasource:
|
||||||
dynamic:
|
dynamic:
|
||||||
seata: true # 开启对 seata的支持
|
seata: true # 开启对 seata的支持
|
||||||
seata-mode: AT #支持XA及AT模式,默认AT
|
primary: account
|
||||||
datasource:
|
datasource:
|
||||||
# 设置 账号数据源配置
|
|
||||||
account:
|
account:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
url: jdbc:mysql://127.0.0.1:3306/jeecg_account?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
|
||||||
url: jdbc:mysql://127.0.0.1:3306/jeecg_account?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useSSL=false
|
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: root
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
schema: classpath:sql/schema-account.sql
|
schema: classpath:sql/schema-account.sql
|
||||||
seata:
|
seata:
|
||||||
enable-auto-data-source-proxy: false
|
enable-auto-data-source-proxy: false
|
||||||
|
|
|
@ -5,15 +5,17 @@ spring:
|
||||||
name: seata-order
|
name: seata-order
|
||||||
main:
|
main:
|
||||||
allow-bean-definition-overriding: true
|
allow-bean-definition-overriding: true
|
||||||
|
autoconfigure:
|
||||||
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
||||||
datasource:
|
datasource:
|
||||||
dynamic:
|
dynamic:
|
||||||
|
primary: order
|
||||||
seata: true # 开启对 seata的支持
|
seata: true # 开启对 seata的支持
|
||||||
seata-mode: AT #支持XA及AT模式,默认AT
|
|
||||||
datasource:
|
datasource:
|
||||||
# 设置 账号数据源配置
|
# 设置 账号数据源配置
|
||||||
order:
|
order:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://127.0.0.1:3306/jeecg_order?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useSSL=false
|
url: jdbc:mysql://127.0.0.1:3306/jeecg_order?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useSSL=false
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: root
|
||||||
schema: classpath:sql/schema-order.sql
|
schema: classpath:sql/schema-order.sql
|
||||||
|
|
|
@ -7,13 +7,14 @@ spring:
|
||||||
allow-bean-definition-overriding: true
|
allow-bean-definition-overriding: true
|
||||||
datasource:
|
datasource:
|
||||||
dynamic:
|
dynamic:
|
||||||
|
primary: product
|
||||||
seata: true # 开启对 seata的支持
|
seata: true # 开启对 seata的支持
|
||||||
seata-mode: AT #支持XA及AT模式,默认AT
|
seata-mode: AT #支持XA及AT模式,默认AT
|
||||||
datasource:
|
datasource:
|
||||||
# 设置 账号数据源配置
|
# 设置 账号数据源配置
|
||||||
product:
|
product:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://127.0.0.1:3306/jeecg_product?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useSSL=false
|
url: jdbc:mysql://127.0.0.1:3306/jeecg_product?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useSSL=false
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: root
|
||||||
schema: classpath:sql/schema-product.sql
|
schema: classpath:sql/schema-product.sql
|
||||||
|
|
Loading…
Reference in New Issue