소스 검색

1、各服务配置文件

slowslo 3 년 전
부모
커밋
4761196ee4
51개의 변경된 파일1153개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      sptg-ad/sptg-ad-biz/src/main/resources/application.yml
  2. 17 0
      sptg-ad/sptg-ad-biz/src/main/resources/bootstrap.yml
  3. 34 0
      sptg-api-gateway/src/main/resources/application.yml
  4. 15 0
      sptg-api-gateway/src/main/resources/bootstrap.yml
  5. 11 0
      sptg-common/sptg-common-core/src/test/resources/application.yml
  6. 8 0
      sptg-config/src/main/resources/application.yml
  7. 59 0
      sptg-config/src/main/resources/bootstrap.yml
  8. 196 0
      sptg-config/src/main/resources/conf/application.yml
  9. 4 0
      sptg-config/src/main/resources/conf/smart-house-ad.yml
  10. 4 0
      sptg-config/src/main/resources/conf/smart-house-device.yml
  11. 4 0
      sptg-config/src/main/resources/conf/smart-house-estate.yml
  12. 4 0
      sptg-config/src/main/resources/conf/smart-house-iot.yml
  13. 4 0
      sptg-config/src/main/resources/conf/smart-house-lcn.yml
  14. 4 0
      sptg-config/src/main/resources/conf/smart-house-pay.yml
  15. 4 0
      sptg-config/src/main/resources/conf/smart-house-permissions.yml
  16. 4 0
      sptg-config/src/main/resources/conf/smart-house-statistics.yml
  17. 4 0
      sptg-config/src/main/resources/conf/smart-house-third.yml
  18. 4 0
      sptg-config/src/main/resources/conf/smart-house-video-cloud.yml
  19. 14 0
      sptg-device/sptg-device-biz/src/main/resources/application.yml
  20. 17 0
      sptg-device/sptg-device-biz/src/main/resources/bootstrap.yml
  21. 16 0
      sptg-estate/sptg-estate-biz/src/main/resources/application.yml
  22. 17 0
      sptg-estate/sptg-estate-biz/src/main/resources/bootstrap.yml
  23. 7 0
      sptg-eureka/src/main/resources/application.yml
  24. 26 0
      sptg-eureka/src/main/resources/bootstrap.yml
  25. 40 0
      sptg-gateway/sptg-app-gateway/src/main/resources/application.yml
  26. 17 0
      sptg-gateway/sptg-app-gateway/src/main/resources/bootstrap.yml
  27. 29 0
      sptg-gateway/sptg-device-gateway/src/main/resources/application.yml
  28. 17 0
      sptg-gateway/sptg-device-gateway/src/main/resources/bootstrap.yml
  29. 34 0
      sptg-gateway/sptg-grid-gateway/src/main/resources/application.yml
  30. 17 0
      sptg-gateway/sptg-grid-gateway/src/main/resources/bootstrap.yml
  31. 63 0
      sptg-gateway/sptg-housekeeper-gateway/src/main/resources/application.yml
  32. 14 0
      sptg-gateway/sptg-housekeeper-gateway/src/main/resources/bootstrap.yml
  33. 16 0
      sptg-iot/sptg-iot-biz/src/main/resources/application.yml
  34. 17 0
      sptg-iot/sptg-iot-biz/src/main/resources/bootstrap.yml
  35. 14 0
      sptg-pay/sptg-pay-biz/src/main/resources/application.yml
  36. 17 0
      sptg-pay/sptg-pay-biz/src/main/resources/bootstrap.yml
  37. 14 0
      sptg-permissions/sptg-permissions-biz/src/main/resources/application.yml
  38. 17 0
      sptg-permissions/sptg-permissions-biz/src/main/resources/bootstrap.yml
  39. 42 0
      sptg-repeater/src/main/resources/application-dev.yml
  40. 42 0
      sptg-repeater/src/main/resources/application-prod.yml
  41. 43 0
      sptg-repeater/src/main/resources/application-test.yml
  42. 26 0
      sptg-repeater/src/main/resources/application.yml
  43. 17 0
      sptg-repeater/src/main/resources/config/commonValues.yml
  44. 14 0
      sptg-statistics/sptg-statistics-biz/src/main/resources/application.yml
  45. 17 0
      sptg-statistics/sptg-statistics-biz/src/main/resources/bootstrap.yml
  46. 25 0
      sptg-third/sptg-third-biz/src/main/resources/application.yml
  47. 17 0
      sptg-third/sptg-third-biz/src/main/resources/bootstrap.yml
  48. 11 0
      sptg-tx-manager/src/main/resources/application.yml
  49. 49 0
      sptg-tx-manager/src/main/resources/bootstrap.yml
  50. 16 0
      sptg-video-cloud/sptg-video-cloud-biz/src/main/resources/application.yml
  51. 17 0
      sptg-video-cloud/sptg-video-cloud-biz/src/main/resources/bootstrap.yml

+ 14 - 0
sptg-ad/sptg-ad-biz/src/main/resources/application.yml

@@ -0,0 +1,14 @@
+server:
+  port: 2002
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+# mybatis-plus config
+mybatis-plus:
+  # 实体扫描,多个package用逗号或者分号分隔
+  type-aliases-package: com.sptg.ad.api.entity
+
+logging:
+  level:
+    root: warn

+ 17 - 0
sptg-ad/sptg-ad-biz/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-ad
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true

+ 34 - 0
sptg-api-gateway/src/main/resources/application.yml

@@ -0,0 +1,34 @@
+server:
+  port: 7000
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: true
+hystrix: #hystrix配置
+  command:
+    default:
+      execution:
+        isolation:
+          thread:
+            timeoutInMilliseconds: 2500 
+ribbon: #ribbon负载均衡参数配置
+  ReadTimeout: 5000
+  ConnectTimeout: 5000
+zuul:
+  #prefix: sptg-api-gateway
+  routes:
+    device:
+      path: /sptg-device-biz/**
+      serviceId: sptg-device-biz
+    permissions:
+      path: /sptg-permissions-biz/**
+      serviceId: sptg-permissions-biz
+    estate:
+      path: /sptg-estate-biz/**
+      serviceId: sptg-estate-biz
+    ad:
+      path: /sptg-ad-biz/**
+      serviceId: sptg-ad-biz  
+    statistics:
+      path: /sptg-statistics-biz/**
+      serviceId: sptg-statistics-biz

+ 15 - 0
sptg-api-gateway/src/main/resources/bootstrap.yml

@@ -0,0 +1,15 @@
+#
+spring:
+  application:
+    name: sptg-api-gateway
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://sptg-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true
+    #ip-address: sptg-api-gateway
+

+ 11 - 0
sptg-common/sptg-common-core/src/test/resources/application.yml

@@ -0,0 +1,11 @@
+server:
+  port: 1000
+spring:
+  thymeleaf:
+    mode: HTML5
+    encoding: UTF-8
+    cache: false
+    prefix: classpath:/templates/
+    suffix:  .html
+    servlet:
+      content-type: text/html

+ 8 - 0
sptg-config/src/main/resources/application.yml

@@ -0,0 +1,8 @@
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+
+logging:
+  level:
+    root: warn

+ 59 - 0
sptg-config/src/main/resources/bootstrap.yml

@@ -0,0 +1,59 @@
+server:
+  port: 4001
+# http://139.9.178.34:14001/config/application.yml
+spring:
+  application:
+    name: smart-house-config
+  profiles:
+    active: native
+  cloud:
+    config:
+      #label: master 分支,默认是master
+      server:
+        native:
+          search-locations: classpath:/conf/
+
+# Eureka 客户端配置 https://www.iteye.com/blog/glf2002lucky-2428874
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true
+    #定义服务续约任务(心跳)的调用间隔,单位:秒
+    #lease-renewal-interval-in-seconds: 5
+
+
+#---
+##local
+#spring:
+#  application:
+#    name: smart-house-config-local
+#  profiles:
+#    active: local
+#
+#---
+##dev
+#spring:
+#  application:
+#    name: smart-house-config-dev
+#  profiles:
+#    active: dev
+#
+#---
+##test
+#spring:
+#  application:
+#    name: smart-house-config
+#  profiles:
+#    active: test
+#
+#---
+##prod
+#spring:
+#  application:
+#    name: smart-house-config
+#  profiles:
+#    active: prod

+ 196 - 0
sptg-config/src/main/resources/conf/application.yml

@@ -0,0 +1,196 @@
+########################################################################################################################
+#                                                     全局配置                                                         #
+########################################################################################################################
+spring:
+  # 数据源
+  datasource:
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    username: ${mvn.spring.datasource.username}
+    password: ${mvn.spring.datasource.password}
+    hikari:
+      idle-timeout: 10000
+      max-lifetime: 30000
+      minimum-idle: 5
+      maximum-pool-size: 10
+  # Redis配置
+  redis:
+    host: ${mvn.spring.redis.host}
+    port: ${mvn.spring.redis.port}
+    password: ${mvn.spring.redis.password}
+    database: ${mvn.spring.redis.database}
+  # RabbitMq配置
+  rabbitmq:
+    host: ${mvn.spring.rabbitmq.host}
+    port: ${mvn.spring.rabbitmq.port}
+    username: ${mvn.spring.rabbitmq.username}
+    password: ${mvn.spring.rabbitmq.password}
+    virtual-host: ${mvn.spring.rabbitmq.virtual-host}
+  mvc:
+    # 抛出404异常
+    throw-exception-if-no-handler-found: true
+  cloud:
+    stream:
+      bindings:
+        # 机构禁用管道
+        org_disable_channel_input:
+          group: ${spring.application.name}
+          destination: org_disable_channel
+        org_disable_channel_output:
+          group: ${spring.application.name}
+          destination: org_disable_channel
+        # 删除机构管道
+        org_del_channel_input:
+          group: ${spring.application.name}
+          destination: org_del_channel
+        org_del_channel_output:
+          group: ${spring.application.name}
+          destination: org_del_channel
+        # 机构名称修改管道
+        org_modify_name_channel_input:
+          group: ${spring.application.name}
+          destination: org_modify_name_channel
+        org_modify_name_channel_output:
+          group: ${spring.application.name}
+          destination: org_modify_name_channel
+        # 机构迁移管道
+        org_transfer_channel_input:
+          group: ${spring.application.name}
+          destination: org_transfer_channel
+        org_transfer_channel_output:
+          group: ${spring.application.name}
+          destination: org_transfer_channel
+        # 添加设备管道
+        device_add_channel_input:
+          group: ${spring.application.name}
+          destination: device_add_channel
+        device_add_channel_output:
+          group: ${spring.application.name}
+          destination: device_add_channel
+        # 删除设备管道
+        device_del_channel_input:
+          group: ${spring.application.name}
+          destination: device_del_channel
+        device_del_channel_output:
+          group: ${spring.application.name}
+          destination: device_del_channel
+        # 添加小区管道
+        xq_add_channel_input:
+          group: ${spring.application.name}
+          destination: xq_add_channel
+        xq_add_channel_output:
+          group: ${spring.application.name}
+          destination: xq_add_channel
+        # 小区授权管道
+        xq_authorize_channel_input:
+          group: ${spring.application.name}
+          destination: xq_authorize_channel
+        xq_authorize_channel_output:
+          group: ${spring.application.name}
+          destination: xq_authorize_channel
+        # 小区取消授权管道
+        xq_untying_authorize_channel_input:
+          group: ${spring.application.name}
+          destination: xq_untying_authorize_channel
+        xq_untying_authorize_channel_output:
+          group: ${spring.application.name}
+          destination: xq_untying_authorize_channel
+        # 同步账号信息管道
+        sync_account_channel:
+          group: ${spring.application.name}
+        # 禁用账号管道
+        account_disable_channel:
+          group: ${spring.application.name}
+        # 设备App更新管道
+        device_update_channel:
+          group: ${spring.application.name}
+        # 同步设备人脸广告数据管道
+        sync_face_advert_data_channel_input:
+          group: ${spring.application.name}
+          destination: sync_face_advert_data_channel
+        sync_face_advert_data_channel_output:
+          group: ${spring.application.name}
+          destination: sync_face_advert_data_channel
+        # 同步设备闲时广告数据管道
+        sync_leisure_advert_data_channel_input:
+          group: ${spring.application.name}
+          destination: sync_leisure_advert_data_channel
+        sync_leisure_advert_data_channel_output:
+          group: ${spring.application.name}
+          destination: sync_leisure_advert_data_channel
+        # 同步设备公告数据管道
+        sync_notice_data_channel_output:
+          group: ${spring.application.name}
+          destination: sync_notice_data_channel
+        sync_notice_data_channel_input:
+          group: ${spring.application.name}
+          destination: sync_notice_data_channel
+        # 广告下发任务回调管道
+        advert_task_callback_output:
+          group: ${spring.application.name}
+          destination: advert_task_callback
+        advert_task_callback_input:
+          group: ${spring.application.name}
+          destination: advert_task_callback
+        # 公告下发任务回调管道
+        notice_task_callback_output:
+          group: ${spring.application.name}
+          destination: notice_task_callback
+        notice_task_callback_input:
+          group: ${spring.application.name}
+          destination: notice_task_callback
+
+# mybatis-plus conf
+mybatis-plus:
+  # 如果是放在resource目录 classpath:/mapper/*Mapper.xml
+  mapper-locations: classpath:/mapper/*Mapper.xml
+  global-config:
+    # 主键类型  0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
+    id-type: 0
+    # 字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
+    field-strategy: 0
+    # 驼峰下划线转换
+    db-column-underline: true
+    # SQL 注入器
+    sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
+  configuration:
+    # 配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId)
+    map-underscore-to-camel-case: true
+    cache-enabled: false
+
+# feigns 配置
+feign:
+  hystrix:
+    enabled: true
+
+#hystrix的超时时间
+hystrix:
+  command:
+    default:
+      execution:
+        timeout:
+          enabled: true
+        isolation:
+          thread:
+            timeoutInMilliseconds: 30000
+#ribbon的超时时间
+ribbon:
+  ReadTimeout: 30000
+  ConnectTimeout: 30000
+
+# FastDfs配置
+fdfs:
+  # 跟踪器列表
+  tracker-list:
+    - fast-dfs-server:22122
+
+# 分布式事务服务端地址
+tx-lcn:
+  client:
+    manager-address: smart-house-lcn:8070
+
+# 亲邻配置
+qinlin:
+  appId: ${mvn.qinlin.appid}
+  appSecret: ${mvn.qinlin.app.secret}
+  version: ${mvn.qinlin.version}
+  apiHost: ${mvn.qinlin.api.host}

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-ad.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.ad}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-device.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.device}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-estate.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.estate}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-iot.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.iot}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-lcn.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.lcn}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-pay.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.pay}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-permissions.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.permissions}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-statistics.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.statistics}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-third.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.third}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 4 - 0
sptg-config/src/main/resources/conf/smart-house-video-cloud.yml

@@ -0,0 +1,4 @@
+spring:
+  # 数据源
+  datasource:
+    url: jdbc:mysql://${mvn.spring.datasource.host}:${mvn.spring.datasource.port}/${mysql.database.video-cloud}?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8

+ 14 - 0
sptg-device/sptg-device-biz/src/main/resources/application.yml

@@ -0,0 +1,14 @@
+server:
+  port: 2003
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+# mybatis-plus config
+mybatis-plus:
+  # 实体扫描,多个package用逗号或者分号分隔
+  type-aliases-package: com.sptg.device.api.entity
+
+logging:
+  level:
+    root: warn

+ 17 - 0
sptg-device/sptg-device-biz/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-device
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true

+ 16 - 0
sptg-estate/sptg-estate-biz/src/main/resources/application.yml

@@ -0,0 +1,16 @@
+server:
+  port: 2004
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+# mybatis-plus config
+mybatis-plus:
+  # 实体扫描,多个package用逗号或者分号分隔
+  type-aliases-package: com.sptg.estate.api.entity
+#  configuration:
+#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+
+logging:
+  level:
+    root: warn

+ 17 - 0
sptg-estate/sptg-estate-biz/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-estate
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true

+ 7 - 0
sptg-eureka/src/main/resources/application.yml

@@ -0,0 +1,7 @@
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: true
+logging:
+  level:
+    root: warn

+ 26 - 0
sptg-eureka/src/main/resources/bootstrap.yml

@@ -0,0 +1,26 @@
+#
+server:
+  port: 7001
+spring:
+  application:
+    name: sptg-eureka
+# Eureka 服务商端配置 https://www.iteye.com/blog/glf2002lucky-2428874
+eureka:
+  client:
+    register-with-eureka: false
+    fetch-registry: false
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+  instance:
+    #hostname: localhost
+    ip-address: sptg-eureka
+    prefer-ip-address: true
+    #instance-id=${eureka.instance.hostname}:${server.port}
+    #定义服务失效的时间,单位:秒
+    #lease-expiration-duration-in-seconds: 15
+    #从Eureka服务器端获取注册信息的间隔时间,单位:秒
+    #registery-fetch-interval-seconds: 15
+    #ip-address:
+  server:
+    enable-self-preservation: false
+    eviction-interval-timer-in-ms: 30000

+ 40 - 0
sptg-gateway/sptg-app-gateway/src/main/resources/application.yml

@@ -0,0 +1,40 @@
+spring:
+  #上传文件大小限制
+  servlet:
+    multipart:
+      max-file-size: 200MB
+      max-request-size: 200MB
+
+hystrix:
+  command:
+    default:  #default全局有效,security id指定应用有效
+      execution:
+        timeout:
+          #如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
+          enabled: true
+        isolation:
+          thread:
+            timeoutInMilliseconds: 120000 #断路器超时时间,默认1000ms
+ribbon:
+  OkToRetryOnAllOperations: false #对所有操作请求都进行重试,默认false
+  ReadTimeout: 120000   #负载均衡超时时间,默认值5000
+  ConnectTimeout: 2000 #ribbon请求连接的超时时间,默认值2000
+  MaxAutoRetries: 0     #对当前实例的重试次数,默认0
+  MaxAutoRetriesNextServer: 1
+
+logging:
+  level:
+    root: warn
+
+healthcode:
+  productId: 19fccd26af234791
+  productSecret: bb21153d067446d5
+
+management:
+  endpoints:
+    enabled-by-default: false
+  endpoint:
+    env:
+      enabled: false
+    health:
+      enabled: true

+ 17 - 0
sptg-gateway/sptg-app-gateway/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-app-gateway
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+  instance:
+    prefer-ip-address: true
+server:
+  port: 9082

+ 29 - 0
sptg-gateway/sptg-device-gateway/src/main/resources/application.yml

@@ -0,0 +1,29 @@
+spring:
+  #上传文件大小限制
+  servlet:
+    multipart:
+      max-file-size: 5MB
+      max-request-size: 10MB
+# actuator 指令配置
+management:
+  endpoint:
+    env:
+      enabled: false
+    health:
+      enabled: true
+  endpoints:
+    enabled-by-default: false
+    web:
+      exposure:
+        include:
+          - refresh
+          - restart
+          - shutdown
+          - bus-refresh
+          - health
+          - info
+          - hystrix.stream
+
+logging:
+  level:
+    root: warn

+ 17 - 0
sptg-gateway/sptg-device-gateway/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-device-gateway
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+  instance:
+    prefer-ip-address: true
+server:
+  port: 9081

+ 34 - 0
sptg-gateway/sptg-grid-gateway/src/main/resources/application.yml

@@ -0,0 +1,34 @@
+spring:
+  #上传文件大小限制
+  servlet:
+    multipart:
+      max-file-size: 200MB
+      max-request-size: 200MB
+
+hystrix:
+  command:
+    default:  #default全局有效,security id指定应用有效
+      execution:
+        timeout:
+          #如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
+          enabled: true
+        isolation:
+          thread:
+            timeoutInMilliseconds: 120000 #断路器超时时间,默认1000ms
+ribbon:
+  OkToRetryOnAllOperations: false #对所有操作请求都进行重试,默认false
+  ReadTimeout: 120000   #负载均衡超时时间,默认值5000
+  ConnectTimeout: 2000 #ribbon请求连接的超时时间,默认值2000
+  MaxAutoRetries: 0     #对当前实例的重试次数,默认0
+  MaxAutoRetriesNextServer: 1
+
+logging:
+  level:
+    root: warn
+
+management:
+  endpoint:
+    env:
+      enabled: false
+    health:
+      enabled: true

+ 17 - 0
sptg-gateway/sptg-grid-gateway/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-grid-gateway
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+  instance:
+    prefer-ip-address: true
+server:
+  port: 9083

+ 63 - 0
sptg-gateway/sptg-housekeeper-gateway/src/main/resources/application.yml

@@ -0,0 +1,63 @@
+server:
+  port: 9091
+spring:
+  # thymeleaf
+  thymeleaf:
+    mode: HTML5
+    encoding: UTF-8
+    cache: false
+    prefix: classpath:/templates/
+    suffix:  .html
+    servlet:
+      content-type: text/html
+  #上传文件大小限制
+  servlet:
+    multipart:
+      max-file-size: 200MB
+      max-request-size: 200MB
+hystrix:
+  command:
+    default:  #default全局有效,security id指定应用有效
+      execution:
+        timeout:
+          #如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
+          enabled: true
+        isolation:
+          thread:
+            timeoutInMilliseconds: 120000 #断路器超时时间,默认1000ms
+ribbon:
+  OkToRetryOnAllOperations: false #对所有操作请求都进行重试,默认false
+  ReadTimeout: 120000   #负载均衡超时时间,默认值5000
+  ConnectTimeout: 2000 #ribbon请求连接的超时时间,默认值2000
+  MaxAutoRetries: 0     #对当前实例的重试次数,默认0
+  MaxAutoRetriesNextServer: 1
+
+# actuator 指令配置
+management:
+  endpoint:
+    env:
+      enabled: false
+    health:
+      enabled: true
+  endpoints:
+    enabled-by-default: false
+#    web:
+#      exposure:
+#        include:
+#          - refresh
+#          - restart
+#          - shutdown
+#          - bus-refresh
+#          - health
+#          - info
+
+logging:
+  level:
+    root: warn
+
+upload:
+  #localtion: ${UPLOAD_DIR:/home/data/test}
+#  localtion: ${UPLOAD_DIR:D:/test}
+  localtion: ${UPLOAD_DIR:/home/apps/docker-container/zipdata}
+  maxFileSize: 1024000KB
+  maxRequestSize: 10240000KB

+ 14 - 0
sptg-gateway/sptg-housekeeper-gateway/src/main/resources/bootstrap.yml

@@ -0,0 +1,14 @@
+spring:
+  application:
+    name: smart-house-admin-gateway
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+  instance:
+    prefer-ip-address: true

+ 16 - 0
sptg-iot/sptg-iot-biz/src/main/resources/application.yml

@@ -0,0 +1,16 @@
+server:
+  port: 2008
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+# mybatis-plus config
+mybatis-plus:
+  # 实体扫描,多个package用逗号或者分号分隔
+  type-aliases-package: com.sptg.iot.api.entity
+#  configuration:
+#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+
+logging:
+  level:
+    root: warn

+ 17 - 0
sptg-iot/sptg-iot-biz/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-iot
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true

+ 14 - 0
sptg-pay/sptg-pay-biz/src/main/resources/application.yml

@@ -0,0 +1,14 @@
+server:
+  port: 2006
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+# mybatis-plus config
+mybatis-plus:
+  # 实体扫描,多个package用逗号或者分号分隔
+  type-aliases-package: com.sptg.pay.api.entity
+
+logging:
+  level:
+    root: warn

+ 17 - 0
sptg-pay/sptg-pay-biz/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-pay
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true

+ 14 - 0
sptg-permissions/sptg-permissions-biz/src/main/resources/application.yml

@@ -0,0 +1,14 @@
+server:
+  port: 2001
+spring: 
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+# mybatis-plus config
+mybatis-plus:
+  # 实体扫描,多个package用逗号或者分号分隔
+  type-aliases-package: com.sptg.permissions.api.entity
+
+logging:
+  level:
+    root: warn

+ 17 - 0
sptg-permissions/sptg-permissions-biz/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-permissions
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true
+    #ip-address: sptg-permissions-biz

+ 42 - 0
sptg-repeater/src/main/resources/application-dev.yml

@@ -0,0 +1,42 @@
+server:
+  port: 8022
+spring:
+#  #给项目来个名字
+#  application:
+#    name: sptg-repeater
+  #配置rabbitMq 服务器
+#  rabbitmq:
+#    host: smart-house-rabbitmq-dev
+#    port: 5672
+#    username: guest
+##    password: guest
+#    #  是189服务器
+##    password: 31ec5c71-c1b2-11ea-bdad-0242ac12000e
+#    password: 2e564ee5-d9ed-11e9-bab6-0242ac170005
+#
+#    #虚拟host 可以不设置,使用server默认host
+#    virtual-host: device_1
+  #arhv环境是smart-house    virtual-host: smart-house
+#    virtual-host: device_1
+  redis:
+    # port: 6380是189服务器
+    host: smart-house-redis
+    port: 6379
+common-value:
+  lz:
+    url: http://127.0.0.1:9081/
+    callback: dh/device/instruct/callback
+    uploadOpenDoorLog: dh/estate/open/door/log
+    heartbeat: device/heartbeat/check
+  dh:
+    url: http://127.0.0.1:8088/dhpkgcomm/app/
+    online: online # 设备是否在线
+    open_door: open_door # 远程开锁
+    add_open_door_card: add_open_door_card  # 单张加卡
+    add_open_door_card_batch: add_open_door_card_batch  # 单张加卡
+    add_open_door_card_more: add_open_door_card_more  # 多张加卡
+    del_open_door_card: del_open_door_card  # 删除卡
+    open_door_log: open_door_log  # 开锁记录
+    add_open_door_card_batch_again: add_open_door_card_batch_again  # 重新多张加卡
+    format_data: format_data  # 格式化
+

+ 42 - 0
sptg-repeater/src/main/resources/application-prod.yml

@@ -0,0 +1,42 @@
+server:
+  port: 8022
+spring:
+#  #给项目来个名字
+#  application:
+#    name: sptg-repeater
+  #配置rabbitMq 服务器
+#  rabbitmq:
+#    host: smart-house-rabbitmq-dev
+#    port: 5672
+#    username: guest
+##    password: guest
+#    #  是189服务器
+##    password: 31ec5c71-c1b2-11ea-bdad-0242ac12000e
+#    password: 2e564ee5-d9ed-11e9-bab6-0242ac170005
+#
+#    #虚拟host 可以不设置,使用server默认host
+#    virtual-host: device_1
+  #arhv环境是smart-house    virtual-host: smart-house
+#    virtual-host: device_1
+  redis:
+    # port: 6380是189服务器
+    host: smart-house-redis
+    port: 6379
+common-value:
+  lz:
+    url: http://192.168.3.191:9081/
+    callback: dh/device/instruct/callback
+    uploadOpenDoorLog: dh/estate/open/door/log
+    heartbeat: device/heartbeat/check
+  dh:
+    url: http://192.168.3.191:8088/dhpkgcomm/app/
+    online: online # 设备是否在线
+    open_door: open_door # 远程开锁
+    add_open_door_card: add_open_door_card  # 单张加卡
+    add_open_door_card_batch: add_open_door_card_batch  # 单张加卡
+    add_open_door_card_more: add_open_door_card_more  # 多张加卡
+    del_open_door_card: del_open_door_card  # 删除卡
+    open_door_log: open_door_log  # 开锁记录
+    add_open_door_card_batch_again: add_open_door_card_batch_again  # 重新多张加卡
+    format_data: format_data  # 格式化
+

+ 43 - 0
sptg-repeater/src/main/resources/application-test.yml

@@ -0,0 +1,43 @@
+server:
+  port: 8022
+spring:
+#  #给项目来个名字
+#  application:
+#    name: sptg-repeater
+  #配置rabbitMq 服务器
+  rabbitmq:
+    host: smart-house-rabbitmq-test
+    port: 25672
+    username: guest
+#    password: guest
+#    #  是189服务器
+    password: 31ec5c71-c1b2-11ea-bdad-0242ac12000e
+#    password: 2e564ee5-d9ed-11e9-bab6-0242ac170005
+#
+#    #虚拟host 可以不设置,使用server默认host
+    virtual-host: smart-house
+  #arhv环境是smart-house    virtual-host: smart-house
+#    virtual-host: device_1
+  redis:
+    # port: 6380是189服务器
+    host: smart-house-redis
+    port: 6379
+common-value:
+  lz:
+    url: http://192.168.3.189:9081/
+    callback: dh/device/instruct/callback
+    uploadOpenDoorLog: dh/estate/open/door/log
+    heartbeat: device/heartbeat/check
+  dh:
+#    url: http://112.94.160.244:18088/dhpkgcomm/app/
+    url: http://192.168.3.191:8088/dhpkgcomm/app/
+    online: online # 设备是否在线
+    open_door: open_door # 远程开锁
+    add_open_door_card: add_open_door_card  # 单张加卡
+    add_open_door_card_batch: add_open_door_card_batch  # 单张加卡
+    add_open_door_card_more: add_open_door_card_more  # 多张加卡
+    del_open_door_card: del_open_door_card  # 删除卡
+    open_door_log: open_door_log  # 开锁记录
+    add_open_door_card_batch_again: add_open_door_card_batch_again  # 重新多张加卡
+    format_data: format_data  # 格式化
+

+ 26 - 0
sptg-repeater/src/main/resources/application.yml

@@ -0,0 +1,26 @@
+#server:
+#  port: 8022
+spring:
+  #给项目来个名字
+  application:
+    name: smart-house-repeater
+  profiles:
+    active: test
+  #配置rabbitMq 服务器
+#  rabbitmq:
+#    host: smart-house-rabbitmq
+#    port: 5672
+#    username: guest
+##    password: guest
+#    #  是189服务器
+##    password: 31ec5c71-c1b2-11ea-bdad-0242ac12000e
+#    password: 2e564ee5-d9ed-11e9-bab6-0242ac170005
+#
+#    #虚拟host 可以不设置,使用server默认host
+#    virtual-host: device_1
+  #arhv环境是smart-house    virtual-host: smart-house
+#    virtual-host: device_1
+#  redis:
+#    # port: 6380是189服务器
+#    host: smart-house-redis
+#    port: 6379

+ 17 - 0
sptg-repeater/src/main/resources/config/commonValues.yml

@@ -0,0 +1,17 @@
+common-value:
+  lz:
+    url: http://192.168.3.189:9081/
+    callback: dh/device/instruct/callback
+    uploadOpenDoorLog: dh/estate/open/door/log
+    heartbeat: device/heartbeat/check
+  dh:
+    url: http://192.168.3.189:8088/dhpkgcomm/app/
+    online: online # 设备是否在线
+    open_door: open_door # 远程开锁
+    add_open_door_card: add_open_door_card  # 单张加卡
+    add_open_door_card_batch: add_open_door_card_batch  # 单张加卡
+    add_open_door_card_more: add_open_door_card_more  # 多张加卡
+    del_open_door_card: del_open_door_card  # 删除卡
+    open_door_log: open_door_log  # 开锁记录
+    add_open_door_card_batch_again: add_open_door_card_batch_again  # 重新多张加卡
+    format_data: format_data  # 格式化

+ 14 - 0
sptg-statistics/sptg-statistics-biz/src/main/resources/application.yml

@@ -0,0 +1,14 @@
+server:
+  port: 2005
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+# mybatis-plus config
+mybatis-plus:
+  # 实体扫描,多个package用逗号或者分号分隔
+  type-aliases-package: com.sptg.statistics.api.entity
+
+logging:
+  level:
+    root: warn

+ 17 - 0
sptg-statistics/sptg-statistics-biz/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-statistics
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true

+ 25 - 0
sptg-third/sptg-third-biz/src/main/resources/application.yml

@@ -0,0 +1,25 @@
+server:
+  port: 2009
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+# mybatis-plus config
+mybatis-plus:
+  # 实体扫描,多个package用逗号或者分号分隔
+  type-aliases-package: com.sptg.third.api.entity
+#  configuration:
+#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+
+logging:
+  level:
+    root: warn
+
+management:
+  endpoints:
+    enabled-by-default: false
+  endpoint:
+    env:
+      enabled: false
+    health:
+      enabled: true

+ 17 - 0
sptg-third/sptg-third-biz/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-third
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true

+ 11 - 0
sptg-tx-manager/src/main/resources/application.yml

@@ -0,0 +1,11 @@
+server:
+  port: 7970
+spring:
+  jpa:
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
+    hibernate:
+      ddl-auto: none
+
+logging:
+  level:
+    root: warn

+ 49 - 0
sptg-tx-manager/src/main/resources/bootstrap.yml

@@ -0,0 +1,49 @@
+spring:
+  application:
+    name: smart-house-lcn
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true
+
+#---
+##local
+#spring:
+#  # 配置中心
+#  cloud:
+#    config:
+#      uri: http://smart-house-config:4001
+#
+#---
+##dev
+#spring:
+#  # 配置中心
+#  cloud:
+#    config:
+#      uri: http://smart-house-config-dev:4001
+#
+#---
+##test
+#spring:
+#  # 配置中心
+#  cloud:
+#    config:
+#      uri: http://smart-house-config:4001
+#
+#---
+##prod
+#spring:
+#  # 配置中心
+#  cloud:
+#    config:
+#      uri: http://smart-house-config:4001

+ 16 - 0
sptg-video-cloud/sptg-video-cloud-biz/src/main/resources/application.yml

@@ -0,0 +1,16 @@
+server:
+  port: 2007
+spring:
+  # 不映射资源文件
+  resources:
+    add-mappings: false
+# mybatis-plus config
+mybatis-plus:
+  # 实体扫描,多个package用逗号或者分号分隔
+  type-aliases-package: com.sptg.video.cloud.api.entity
+#  configuration:
+#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+
+logging:
+  level:
+    root: warn

+ 17 - 0
sptg-video-cloud/sptg-video-cloud-biz/src/main/resources/bootstrap.yml

@@ -0,0 +1,17 @@
+spring:
+  application:
+    name: smart-house-video-cloud
+  # 配置中心
+  cloud:
+    config:
+      uri: ${config-url}
+
+# Eureka 客户端配置
+eureka:
+  client:
+    service-url:
+      defaultZone: http://smart-house-eureka:7001/eureka
+      register-with-eureka: true
+      fetch-registry: true
+  instance:
+    prefer-ip-address: true