git clone https://github.com/yu199195/Raincat.git
maven clean install
server:
port: 8888
context-path: /admin
spring:
application:
name: raincat-admin
profiles:
active: db
tx:
admin :
userName : admin
password : admin
redis:
hostName: localhost
port : 6379
#password:
cluster : false
# nodes: 127.0.0.1:70001;127.0.1:7002
# redirects: 20
userName,password 是你登录的用户名与密码。
reids配置为你的txManager的redis配置。
spring.profiles.active 是你激活的方式,意思就是你采用什么方式来存储日志的,就激活什么方式,然后修改对应的yml。比如这里使用的db那么我们找到application-db.yml
recover:
application:
list : alipay-service,wechat-service,pay-service
serializer :
support: kryo
retry :
max: 10
db:
driver : com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/tx?useUnicode=true&characterEncoding=utf8
username: root
password: 123456
application.list是指你微服务的applicationName,用逗号分隔。
serializer : 事务日志的序列化方式
retry.max : 最大重试次数。
<!--href 修改成你的ip 端口-->
<a id="serverIpAddress" style="display: none" href="http://192.168.1.132:8888/admin">
<dependency>
<groupId>org.dromara</groupId>
<artifactId>raincat-admin</artifactId>
<version>2.0.0-RELEASE</version>
</dependency>