Update Seata to 1.5.1 in Spring Cloud Alibaba 2.2.x branch
parent
e2f1aada28
commit
9e83d727d2
@ -1,30 +0,0 @@
|
||||
spring.application.name=account-service
|
||||
server.port=18084
|
||||
spring.cloud.nacos.discovery.server-addr=localhost:8848
|
||||
|
||||
spring.datasource.name="accountDataSource"
|
||||
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
||||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
||||
spring.datasource.url=jdbc:mysql://xxx:3306/seata?useSSL=false&serverTimezone=UTC
|
||||
spring.datasource.username=xxx
|
||||
spring.datasource.password=xxx
|
||||
spring.datasource.druid.max-active=20
|
||||
spring.datasource.druid.min-idle=2
|
||||
spring.datasource.druid.initial-size=2
|
||||
|
||||
seata.enabled=true
|
||||
spring.cloud.alibaba.seata.tx-service-group=account-service
|
||||
seata.service.vgroup-mapping.account-service=default
|
||||
seata.service.grouplist.default=127.0.0.1:8091
|
||||
seata.service.disable-global-transaction=false
|
||||
|
||||
## if use registry center
|
||||
#seata.registry.type=nacos
|
||||
#seata.registry.nacos.cluster=default
|
||||
#seata.registry.nacos.server-addr=localhost
|
||||
#
|
||||
## if use config center
|
||||
#seata.config.type=apollo
|
||||
#seata.config.apollo.apollo-meta=http://192.168.1.204:8801
|
||||
#seata.config.apollo.app-id=seata-server
|
||||
|
@ -0,0 +1,63 @@
|
||||
base:
|
||||
config:
|
||||
mdb:
|
||||
hostname: 127.0.0.1
|
||||
dbname: seata
|
||||
port: 3306
|
||||
username: root
|
||||
password: 123456
|
||||
|
||||
server:
|
||||
port: 18084
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8848
|
||||
application:
|
||||
name: account-service
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
datasource:
|
||||
name: storageDataSource
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://${base.config.mdb.hostname}:${base.config.mdb.port}/${base.config.mdb.dbname}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&zeroDateTimeBehavior=convertToNull
|
||||
username: ${base.config.mdb.username}
|
||||
password: ${base.config.mdb.password}
|
||||
druid:
|
||||
max-active: 20
|
||||
min-idle: 2
|
||||
initial-size: 2
|
||||
|
||||
seata:
|
||||
enabled: true
|
||||
application-id: ${spring.application.name}
|
||||
|
||||
tx-service-group: ${spring.application.name}-tx-group
|
||||
config:
|
||||
type: nacos
|
||||
|
||||
nacos:
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
serverAddr: 127.0.0.1:8848
|
||||
|
||||
group: SEATA_GROUP
|
||||
dataId: "seata.properties"
|
||||
username: "nacos"
|
||||
password: "nacos"
|
||||
registry:
|
||||
type: nacos
|
||||
nacos:
|
||||
application: seata-server
|
||||
server-addr: 127.0.0.1:8848
|
||||
group: SEATA_GROUP
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
username: "nacos"
|
||||
password: "nacos"
|
||||
dubbo:
|
||||
registry:
|
||||
address: spring-cloud://localhost
|
||||
cloud:
|
||||
subscribed-services:
|
@ -1,29 +0,0 @@
|
||||
server.port=18081
|
||||
spring.application.name=business-service
|
||||
spring.cloud.nacos.discovery.server-addr=localhost:8848
|
||||
# The following configuration can be omitted.
|
||||
|
||||
#feign.hystrix.enabled=true
|
||||
#feign.sentinel.enabled=true
|
||||
feign.client.config.default.connectTimeout=10000
|
||||
feign.client.config.default.readTimeout=10000
|
||||
|
||||
logging.level.io.seata=debug
|
||||
|
||||
seata.enabled=true
|
||||
spring.cloud.alibaba.seata.tx-service-group=business-service
|
||||
seata.service.vgroup-mapping.business-service=default
|
||||
seata.service.grouplist.default=127.0.0.1:8091
|
||||
seata.service.disable-global-transaction=false
|
||||
|
||||
spring.cloud.loadbalancer.ribbon.enabled=true
|
||||
|
||||
## if use registry center
|
||||
#seata.registry.type=nacos
|
||||
#seata.registry.nacos.cluster=default
|
||||
#seata.registry.nacos.server-addr=localhost
|
||||
#
|
||||
## if use config center
|
||||
#seata.config.type=apollo
|
||||
#seata.config.apollo.apollo-meta=http://192.168.1.204:8801
|
||||
#seata.config.apollo.app-id=seata-server
|
@ -0,0 +1,58 @@
|
||||
server:
|
||||
port: 18081
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8848
|
||||
loadbalancer:
|
||||
ribbon:
|
||||
enabled:true
|
||||
application:
|
||||
name: business-service
|
||||
|
||||
seata:
|
||||
enabled: true
|
||||
application-id: ${spring.application.name}
|
||||
|
||||
tx-service-group: ${spring.application.name}-tx-group
|
||||
config:
|
||||
type: nacos
|
||||
nacos:
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
serverAddr: 127.0.0.1:8848
|
||||
group: SEATA_GROUP
|
||||
dataId: "seata.properties"
|
||||
username: "nacos"
|
||||
password: "nacos"
|
||||
registry:
|
||||
type: nacos
|
||||
nacos:
|
||||
application: seata-server
|
||||
server-addr: 127.0.0.1:8848
|
||||
group: SEATA_GROUP
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
username: "nacos"
|
||||
password: "nacos"
|
||||
dubbo:
|
||||
registry:
|
||||
address: spring-cloud://localhost
|
||||
protocol:
|
||||
name: dubbo
|
||||
port: -1
|
||||
provider:
|
||||
telnet: ls,ps,cd,pwd,trace,count,invoke,select,status,log,help,clear,exit,shutdown
|
||||
cloud:
|
||||
subscribed-services: storage-service
|
||||
feign:
|
||||
client:
|
||||
config:
|
||||
default:
|
||||
connectTimeout:10000
|
||||
readTimeout:10000
|
||||
logging:
|
||||
level:
|
||||
io:
|
||||
seata: debug
|
||||
|
@ -1,29 +0,0 @@
|
||||
spring.application.name=order-service
|
||||
server.port=18083
|
||||
spring.cloud.nacos.discovery.server-addr=localhost:8848
|
||||
|
||||
spring.datasource.name="orderDataSource"
|
||||
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
||||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
||||
spring.datasource.url=jdbc:mysql://xxx:3306/seata?useSSL=false&serverTimezone=UTC
|
||||
spring.datasource.username=xxx
|
||||
spring.datasource.password=xxx
|
||||
spring.datasource.druid.max-active=20
|
||||
spring.datasource.druid.min-idle=2
|
||||
spring.datasource.druid.initial-size=2
|
||||
|
||||
seata.enabled=true
|
||||
spring.cloud.alibaba.seata.tx-service-group=business-service
|
||||
seata.service.vgroup-mapping.business-service=default
|
||||
seata.service.grouplist.default=127.0.0.1:8091
|
||||
seata.service.disable-global-transaction=false
|
||||
|
||||
## if use registry center
|
||||
#seata.registry.type=nacos
|
||||
#seata.registry.nacos.cluster=default
|
||||
#seata.registry.nacos.server-addr=localhost
|
||||
#
|
||||
## if use config center
|
||||
#seata.config.type=apollo
|
||||
#seata.config.apollo.apollo-meta=http://192.168.1.204:8801
|
||||
#seata.config.apollo.app-id=seata-server
|
@ -0,0 +1,60 @@
|
||||
base:
|
||||
config:
|
||||
mdb:
|
||||
hostname: 127.0.0.1
|
||||
dbname: seata
|
||||
port: 3306
|
||||
username: root
|
||||
password: 123456
|
||||
|
||||
server:
|
||||
port: 18083
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8848
|
||||
application:
|
||||
name: order-service
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
datasource:
|
||||
name: storageDataSource
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://${base.config.mdb.hostname}:${base.config.mdb.port}/${base.config.mdb.dbname}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&zeroDateTimeBehavior=convertToNull
|
||||
username: ${base.config.mdb.username}
|
||||
password: ${base.config.mdb.password}
|
||||
druid:
|
||||
max-active: 20
|
||||
min-idle: 2
|
||||
initial-size: 2
|
||||
|
||||
seata:
|
||||
enabled: true
|
||||
application-id: ${spring.application.name}
|
||||
tx-service-group: ${spring.application.name}-tx-group
|
||||
config:
|
||||
type: nacos
|
||||
nacos:
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
serverAddr: 127.0.0.1:8848
|
||||
group: SEATA_GROUP
|
||||
dataId: "seata.properties"
|
||||
username: "nacos"
|
||||
password: "nacos"
|
||||
registry:
|
||||
type: nacos
|
||||
nacos:
|
||||
application: seata-server
|
||||
server-addr: 127.0.0.1:8848
|
||||
group: SEATA_GROUP
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
username: "nacos"
|
||||
password: "nacos"
|
||||
dubbo:
|
||||
registry:
|
||||
address: spring-cloud://localhost
|
||||
cloud:
|
||||
subscribed-services:
|
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>seata-server</artifactId>
|
||||
<name>Spring Cloud Starter Alibaba Seata Example - Seata Server</name>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.seata</groupId>
|
||||
<artifactId>seata-server</artifactId>
|
||||
<version>1.5.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2013-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alibaba.cloud.examples.seata;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:zhangqian9158@gmail.com">ZHANGQIAN</a>
|
||||
*/
|
||||
@SpringBootApplication(scanBasePackages = { "io.seata" })
|
||||
public class SeataServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(io.seata.server.ServerApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,85 @@
|
||||
server:
|
||||
port: 7091
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: seata-server
|
||||
|
||||
logging:
|
||||
config: classpath:logback-spring.xml
|
||||
file:
|
||||
path: ${user.home}/logs/seata
|
||||
extend:
|
||||
logstash-appender:
|
||||
destination: 127.0.0.1:4560
|
||||
kafka-appender:
|
||||
bootstrap-servers: 127.0.0.1:9092
|
||||
topic: logback_to_logstash
|
||||
|
||||
console:
|
||||
user:
|
||||
username: seata
|
||||
password: seata
|
||||
|
||||
seata:
|
||||
config:
|
||||
# support: nacos 、 consul 、 apollo 、 zk 、 etcd3
|
||||
type: nacos
|
||||
nacos:
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
group: SEATA_GROUP
|
||||
username: nacos
|
||||
password: nacos
|
||||
##if use MSE Nacos with auth, mutex with username/password attribute
|
||||
#access-key: ""
|
||||
#secret-key: ""
|
||||
data-id: seata.properties
|
||||
registry:
|
||||
# support: nacos 、 eureka 、 redis 、 zk 、 consul 、 etcd3 、 sofa
|
||||
type: nacos
|
||||
preferred-networks: 30.240.*
|
||||
nacos:
|
||||
application: seata-server
|
||||
server-addr: 127.0.0.1:8848
|
||||
group: SEATA_GROUP
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
cluster: default
|
||||
username: nacos
|
||||
password: nacos
|
||||
store:
|
||||
# support: file 、 db 、 redis
|
||||
mode: db
|
||||
session:
|
||||
mode: file
|
||||
lock:
|
||||
mode: file
|
||||
file:
|
||||
dir: sessionStore
|
||||
max-branch-session-size: 16384
|
||||
max-global-session-size: 512
|
||||
file-write-buffer-cache-size: 16384
|
||||
session-reload-read-size: 100
|
||||
flush-disk-mode: async
|
||||
db:
|
||||
datasource: druid
|
||||
db-type: mysql
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/seata?rewriteBatchedStatements=true
|
||||
user: root
|
||||
password: 123456
|
||||
min-conn: 5
|
||||
max-conn: 100
|
||||
global-table: global_table
|
||||
branch-table: branch_table
|
||||
lock-table: lock_table
|
||||
distributed-lock-table: distributed_lock
|
||||
query-limit: 100
|
||||
max-wait: 5000
|
||||
# server:
|
||||
# service-port: 8091 #If not configured, the default is '${server.port} + 1000'
|
||||
security:
|
||||
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
|
||||
tokenValidityInMilliseconds: 1800000
|
||||
ignore:
|
||||
urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>storage-service-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.dubbo</groupId>
|
||||
<artifactId>dubbo</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Spring Cloud Alibaba Seata Examples</name>
|
||||
|
||||
|
||||
|
||||
</project>
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2013-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alibaba.cloud.examples.api;
|
||||
|
||||
/**
|
||||
* @author zhangqian9158@gmail.com
|
||||
*/
|
||||
|
||||
public interface StorageDubboService {
|
||||
|
||||
String updateStorage(String commodityCode, int count);
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2013-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alibaba.cloud.examples.api.impl;
|
||||
|
||||
import com.alibaba.cloud.examples.api.StorageDubboService;
|
||||
import io.seata.core.context.RootContext;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:zhangqian9158@gmail.com">ZHANGQIAN</a>
|
||||
*/
|
||||
|
||||
@DubboService
|
||||
public class StorageDubboServiceImpl implements StorageDubboService {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory
|
||||
.getLogger(StorageDubboServiceImpl.class);
|
||||
|
||||
private static final String SUCCESS = "SUCCESS";
|
||||
|
||||
private static final String FAIL = "FAIL";
|
||||
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
|
||||
public StorageDubboServiceImpl(JdbcTemplate jdbcTemplate) {
|
||||
this.jdbcTemplate = jdbcTemplate;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public String updateStorage(String commodityCode, int count) {
|
||||
LOGGER.info("Dubbo Storage Service Begin ... xid: " + RootContext.getXID());
|
||||
int result = jdbcTemplate.update(
|
||||
"update storage_tbl set count = count - ? where commodity_code = ?",
|
||||
new Object[] { count, commodityCode });
|
||||
LOGGER.info("Storage Service End ... ");
|
||||
if (result == 1) {
|
||||
return SUCCESS;
|
||||
}
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
base:
|
||||
config:
|
||||
mdb:
|
||||
hostname: 127.0.0.1
|
||||
dbname: seata
|
||||
port: 3306
|
||||
username: root
|
||||
password: 123456
|
||||
|
||||
server:
|
||||
port: 18082
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8848
|
||||
application:
|
||||
name: storage-service
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
datasource:
|
||||
name: storageDataSource
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://${base.config.mdb.hostname}:${base.config.mdb.port}/${base.config.mdb.dbname}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&zeroDateTimeBehavior=convertToNull
|
||||
# jdbc_url: jdbc:mysql://${base.config.mdb.hostname}:${base.config.mdb.port}/${base.config.mdb.dbname}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&zeroDateTimeBehavior=convertToNull
|
||||
username: ${base.config.mdb.username}
|
||||
password: ${base.config.mdb.password}
|
||||
druid:
|
||||
max-active: 20
|
||||
min-idle: 2
|
||||
initial-size: 2
|
||||
|
||||
seata:
|
||||
enabled: true
|
||||
application-id: ${spring.application.name}
|
||||
|
||||
tx-service-group: ${spring.application.name}-tx-group
|
||||
config:
|
||||
type: nacos
|
||||
|
||||
nacos:
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
serverAddr: 127.0.0.1:8848
|
||||
|
||||
group: SEATA_GROUP
|
||||
dataId: "seata.properties"
|
||||
username: "nacos"
|
||||
password: "nacos"
|
||||
registry:
|
||||
type: nacos
|
||||
nacos:
|
||||
application: seata-server
|
||||
server-addr: 127.0.0.1:8848
|
||||
group: SEATA_GROUP
|
||||
namespace: a3f588d3-7be9-43d3-af7c-1e7919cf8af6
|
||||
username: "nacos"
|
||||
password: "nacos"
|
||||
dubbo:
|
||||
registry:
|
||||
address: spring-cloud://localhost
|
||||
protocol: dubbo
|
||||
port: -1
|
||||
cloud:
|
||||
subscribed-services: null
|
||||
provider:
|
||||
telnet: ls,ps,cd,pwd,trace,count,invoke,select,status,log,help,clear,exit,shutdown
|
@ -1,30 +0,0 @@
|
||||
spring.application.name=storage-service
|
||||
server.port=18082
|
||||
spring.cloud.nacos.discovery.server-addr=localhost:8848
|
||||
|
||||
spring.datasource.name="storageDataSource"
|
||||
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
||||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
||||
spring.datasource.url=jdbc:mysql://xxx:3306/seata?useSSL=false&serverTimezone=UTC
|
||||
spring.datasource.username=xxx
|
||||
spring.datasource.password=xxx
|
||||
spring.datasource.druid.max-active=20
|
||||
spring.datasource.druid.min-idle=2
|
||||
spring.datasource.druid.initial-size=2
|
||||
|
||||
|
||||
seata.enabled=true
|
||||
spring.cloud.alibaba.seata.tx-service-group=business-service
|
||||
seata.service.vgroup-mapping.business-service=default
|
||||
seata.service.grouplist.default=127.0.0.1:8091
|
||||
seata.service.disable-global-transaction=false
|
||||
|
||||
## if use registry center
|
||||
#seata.registry.type=nacos
|
||||
#seata.registry.nacos.cluster=default
|
||||
#seata.registry.nacos.server-addr=localhost
|
||||
#
|
||||
## if use config center
|
||||
#seata.config.type=apollo
|
||||
#seata.config.apollo.apollo-meta=http://192.168.1.204:8801
|
||||
#seata.config.apollo.app-id=seata-server
|
Loading…
Reference in New Issue