mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
30 lines
956 B
Plaintext
30 lines
956 B
Plaintext
#For details about configuration items, see https://seata.io/zh-cn/docs/user/configurations.html
|
|
#Transport configuration, for client and server
|
|
#https://github.com/seata/seata/blob/1.8.0/script/config-center/config.txt
|
|
|
|
|
|
|
|
#For details about configuration items, see https://seata.io/zh-cn/docs/user/configurations.html
|
|
store {
|
|
## store mode: file、db
|
|
mode = "db"
|
|
lock {
|
|
mode: "db"
|
|
}
|
|
session {
|
|
mode: "db"
|
|
}
|
|
|
|
## database store property
|
|
db {
|
|
## the implement of javax.sql.DataSource, such as DruidDataSource(druid)/BasicDataSource(dbcp) etc.
|
|
datasource = "druid"
|
|
## mysql/oracle/h2/oceanbase etc.
|
|
dbType = "mysql"
|
|
driverClassName = "com.mysql.cj.jdbc.Driver"
|
|
## if using mysql to store the data, recommend add rewriteBatchedStatements=true in jdbc connection param
|
|
url = "jdbc:mysql://192.168.31.134:3306/seata?useUnicode=true&rewriteBatchedStatements=true"
|
|
user = "root"
|
|
password = "123456"
|
|
}
|
|
} |