|
|
@ -30,10 +30,13 @@ ribbon.ReadTimeout=2000 |
|
|
|
# 请谨慎设置,因为post请求大多都是写入请求,如果要支持重试,确保服务的幂等性 |
|
|
|
# 请谨慎设置,因为post请求大多都是写入请求,如果要支持重试,确保服务的幂等性 |
|
|
|
ribbon.OkToRetryOnAllOperations=false |
|
|
|
ribbon.OkToRetryOnAllOperations=false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# eureka注册中心 |
|
|
|
eureka.client.serviceUrl.defaultZone=${eureka.url} |
|
|
|
eureka.client.serviceUrl.defaultZone=${eureka.url} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# zookeeper配置 |
|
|
|
spring.cloud.zookeeper.connect-string=${zookeeper.url} |
|
|
|
spring.cloud.zookeeper.connect-string=${zookeeper.url} |
|
|
|
#spring.cloud.gateway.discovery.locator.lower-case-service-id=true |
|
|
|
|
|
|
|
#spring.cloud.gateway.discovery.locator.enabled=true |
|
|
|
# 数据库连接配置 |
|
|
|
spring.datasource.driver-class-name=com.mysql.jdbc.Driver |
|
|
|
spring.datasource.driver-class-name=com.mysql.jdbc.Driver |
|
|
|
spring.datasource.url=jdbc:mysql://localhost:3306/sop?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull |
|
|
|
spring.datasource.url=jdbc:mysql://localhost:3306/sop?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull |
|
|
|
spring.datasource.username=${mysql.username} |
|
|
|
spring.datasource.username=${mysql.username} |
|
|
|