Merge pull request #3527 from yuluo-yx/1209/feat-adapte-seata-1.8.0
feat: adapt seata 1.8.0 versionpull/3430/merge
commit
c7bebd6126
@ -1,43 +0,0 @@
|
|||||||
<?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>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
|
||||||
<version>2.6.11</version>
|
|
||||||
<relativePath/> <!-- lookup parent from repository -->
|
|
||||||
</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>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>${maven-compiler-plugin.version}</version>
|
|
||||||
<inherited>true</inherited>
|
|
||||||
<configuration>
|
|
||||||
<source>8</source>
|
|
||||||
<target>8</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
|
@ -1,32 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2013-2023 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,91 +0,0 @@
|
|||||||
base:
|
|
||||||
config:
|
|
||||||
mdb:
|
|
||||||
hostname: 127.0.0.1 #your mysql server ip address
|
|
||||||
dbname: seata #your database name for test
|
|
||||||
port: 3306 #your mysql server listening port
|
|
||||||
username: 'root' #your mysql server username
|
|
||||||
password: 'root' #your mysql server password
|
|
||||||
|
|
||||||
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
|
|
||||||
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
|
|
||||||
cluster: default
|
|
||||||
username: nacos
|
|
||||||
password: nacos
|
|
||||||
group: DEFAULT_GROUP
|
|
||||||
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://${base.config.mdb.hostname}:${base.config.mdb.port}/${base.config.mdb.dbname}?rewriteBatchedStatements=true
|
|
||||||
user: ${base.config.mdb.username}
|
|
||||||
password: ${base.config.mdb.password}
|
|
||||||
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
|
|
Loading…
Reference in New Issue