Commit 5e22b1d7 authored by jiaorz's avatar jiaorz

seata

parent d0068207
...@@ -13,7 +13,7 @@ spring: ...@@ -13,7 +13,7 @@ spring:
cloud: cloud:
nacos: nacos:
config: config:
server-addr: 10.5.52.4:8848 server-addr: 127.0.0.1:8848
#共用配置,暂定一个 #共用配置,暂定一个
shared-dataids: common-dev.yaml shared-dataids: common-dev.yaml
--- ---
......
registry { registry {
# file 、nacos 、eureka、redis、zk # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
type = "file" type = "nacos"
nacos { nacos {
serverAddr = "localhost" serverAddr = "127.0.0.1"
namespace = "" namespace = ""
cluster = "default" cluster = "default"
} }
eureka {
serviceUrl = "http://localhost:1001/eureka"
application = "default"
weight = "1"
}
redis {
serverAddr = "localhost:6381"
db = "0"
}
zk {
cluster = "default"
serverAddr = "127.0.0.1:2181"
session.timeout = 6000
connect.timeout = 2000
}
file {
name = "file.conf"
}
} }
config { config {
# file、nacos 、apollo、zk # file、nacos 、apollo、zk、consul、etcd3
type = "file" type = "nacos"
nacos { nacos {
serverAddr = "localhost" serverAddr = "127.0.0.1"
namespace = "" namespace = ""
cluster = "default"
} }
apollo {
app.id = "fescar-server" }
apollo.meta = "http://192.168.1.204:8801"
}
zk {
serverAddr = "127.0.0.1:2181"
session.timeout = 6000
connect.timeout = 2000
}
file {
name = "file.conf"
}
}
\ No newline at end of file
package com.xxfc.platform.order.feign; package com.xxfc.platform.order.feign;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.order.pojo.dto.OrderDTO; import com.xxfc.platform.order.pojo.dto.OrderDTO;
import com.xxfc.platform.order.pojo.order.OrderPageVO; import com.xxfc.platform.order.pojo.order.OrderPageVO;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
......
...@@ -23,7 +23,7 @@ spring: ...@@ -23,7 +23,7 @@ spring:
cloud: cloud:
nacos: nacos:
config: config:
server-addr: 10.5.52.4:8848 server-addr: 127.0.0.1:8848
#共用配置,暂定一个 #共用配置,暂定一个
shared-dataids: common-dev.yaml,mongodb-log-dev.yaml shared-dataids: common-dev.yaml,mongodb-log-dev.yaml
......
...@@ -31,7 +31,7 @@ service { ...@@ -31,7 +31,7 @@ service {
#vgroup->rgroup #vgroup->rgroup
vgroup_mapping.vehicle_tx_group = "default" vgroup_mapping.vehicle_tx_group = "default"
#only support single node #only support single node
default.grouplist = "10.5.52.4:8091" default.grouplist = "127.0.0.1:8091"
#degrade current not support #degrade current not support
enableDegrade = false enableDegrade = false
#disable #disable
......
registry { registry {
# file 、nacos 、eureka、redis、zk # file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
type = "file" type = "nacos"
nacos { nacos {
serverAddr = "localhost" serverAddr = "127.0.0.1"
namespace = "" namespace = ""
cluster = "default" cluster = "default"
} }
eureka {
serviceUrl = "http://localhost:1001/eureka"
application = "default"
weight = "1"
}
redis {
serverAddr = "localhost:6381"
db = "0"
}
zk {
cluster = "default"
serverAddr = "127.0.0.1:2181"
session.timeout = 6000
connect.timeout = 2000
}
file {
name = "file.conf"
}
} }
config { config {
# file、nacos 、apollo、zk # file、nacos 、apollo、zk、consul、etcd3
type = "file" type = "nacos"
nacos { nacos {
serverAddr = "localhost" serverAddr = "127.0.0.1"
namespace = "" namespace = ""
cluster = "default"
} }
apollo {
app.id = "fescar-server" }
apollo.meta = "http://192.168.1.204:8801"
}
zk {
serverAddr = "127.0.0.1:2181"
session.timeout = 6000
connect.timeout = 2000
}
file {
name = "file.conf"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment