seata注册到nacos中
nacos 2.1.1
seata 1.6.1
seata配置文件
server:
port: 7091
spring:
application:
name: ruoyi-seata-server
profiles:
# 环境配置
active: zhongxinlian
logging:
config: classpath:logback-spring.xml
file:
path: ./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
group: DEFAULT_GROUP
#我发现这里只能填写对应的nacos命名空间的id,填名称会对应不上,无法注册
namespace: 373e77cf-a511-4d82-866e-629d5979097b
username: nacos
password: g6ySGnapptZ7EjD666
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
data-id: seata-server.properties
registry:
# support: nacos 、 eureka 、 redis 、 zk 、 consul 、 etcd3 、 sofa
type: nacos
nacos:
application: ruoyi-seata-server
server-addr: 127.0.0.1:8848
group: DEFAULT_GROUP
#我发现这里只能填写对应的nacos命名空间的id,填名称会对应不上,无法注册
namespace: 373e77cf-a511-4d82-866e-629d5979097b
cluster: default
username: nacos
password: g6ySGnapptZ7EjD666
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
security:
secretKey:
tokenValidityInMilliseconds: 1800000
ignore:
urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login