mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-12 07:02:14 +08:00
update
This commit is contained in:
@@ -50,6 +50,9 @@ public enum EurekaUri {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Request getRequest(String url, String... args) {
|
public Request getRequest(String url, String... args) {
|
||||||
|
if (url.endsWith("/")) {
|
||||||
|
url = url.substring(0, url.length() - 1);
|
||||||
|
}
|
||||||
String requestUrl = url + getUri(args);
|
String requestUrl = url + getUri(args);
|
||||||
Request request = this.getBuilder()
|
Request request = this.getBuilder()
|
||||||
.url(requestUrl)
|
.url(requestUrl)
|
||||||
|
@@ -19,6 +19,12 @@ ribbon:
|
|||||||
# 请谨慎设置,因为post请求大多都是写入请求,如果要支持重试,确保服务的幂等性
|
# 请谨慎设置,因为post请求大多都是写入请求,如果要支持重试,确保服务的幂等性
|
||||||
OkToRetryOnAllOperations: false
|
OkToRetryOnAllOperations: false
|
||||||
|
|
||||||
|
# eureka注册中心,如果使用nacos注册中心,这里要注释掉
|
||||||
|
#eureka:
|
||||||
|
# client:
|
||||||
|
# serviceUrl:
|
||||||
|
# defaultZone: http://localhost:1111/eureka/
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: api-gateway
|
name: api-gateway
|
||||||
@@ -39,12 +45,6 @@ spring:
|
|||||||
discovery:
|
discovery:
|
||||||
server-addr: 127.0.0.1:8848
|
server-addr: 127.0.0.1:8848
|
||||||
|
|
||||||
# eureka注册中心,如果使用nacos注册中心,这里要注释掉
|
|
||||||
#eureka:
|
|
||||||
# client:
|
|
||||||
# serviceUrl:
|
|
||||||
# defaultZone: http://localhost:1111/eureka/
|
|
||||||
|
|
||||||
# 数据源,根据实际情况修改
|
# 数据源,根据实际情况修改
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.jdbc.Driver
|
driver-class-name: com.mysql.jdbc.Driver
|
||||||
|
Reference in New Issue
Block a user