目的时为了在类路径的abc目录下放置registry.conf,但通过设置 System.setProperty("seata.config.name","/abc/registry.conf")后,registry.conf的内容不生效,同时registry.conf里也设置了config.file.name="/abc/file.conf",file.conf内容也不生效!
registry.conf内容如下:
registry {
# file 、nacos 、eureka、redis、zk
type = "nacos"
nacos {
application="seata-server"
serverAddr="192.168.137.199:8848"
namespace=""
cluster="default"
group="SEATA_GROUP"
username="nacos"
password="nacos"
}
}
config {
# file、nacos 、apollo、zk
type = "file"
file {
name = "/abc/file.conf"
}
}
3条答案
按热度按时间evrscar21#
check your seata dependency first:
.yml
and.properties
profiles.conf
configuration filedfuffjeb2#
Also note that you are configuring an absolute path.
2q5ifsrm3#
如何设置相对类路径下的子路径呢? …
------------------ 原始邮件 ------------------ 发件人: "seata/seata" ***@***.***>; 发送时间: 2023年2月24日(星期五) 上午10:03 ***@***.***>; ***@***.******@***.***>; 主题: Re: [seata/seata] 通过设置 System.setProperty("seata.config.name","/abc/registry.conf") 设置registry.conf的路径不生效 (Issue #5388) Also note that you are configuring an absolute path. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: ***@***.***>