tanghc 5 years ago
parent 29ecaec4bd
commit bea7348dc8
  1. 1
      sop-admin/sop-admin-server/src/main/resources/application-dev.properties
  2. 7
      sop-gateway/src/main/resources/application-dev.properties
  3. 1
      sop-website/website-server/src/main/resources/application-dev.properties

@ -26,6 +26,7 @@ spring.cloud.zookeeper.connect-string=${zookeeper.url}
spring.cloud.zookeeper.baseSleepTimeMs=3000 spring.cloud.zookeeper.baseSleepTimeMs=3000
spring.cloud.zookeeper.maxRetries=3 spring.cloud.zookeeper.maxRetries=3
# 数据库配置
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}

@ -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}

@ -19,6 +19,7 @@ registry.nacos-server-addr=${nacos.url}
# 使用eureka,填:eureka,使用nacos填:nacos # 使用eureka,填:eureka,使用nacos填:nacos
registry.name=eureka registry.name=eureka
# zookeeper配置
spring.cloud.zookeeper.connect-string=${zookeeper.url} spring.cloud.zookeeper.connect-string=${zookeeper.url}
# 测试环境 # 测试环境

Loading…
Cancel
Save