Browse Source

fix:修改yml文件

wangr 2 years ago
parent
commit
58de904ef2

+ 0 - 10
qhiot-common/qhiot-common-log/src/main/resources/bootstrap.yml

@@ -1,10 +0,0 @@
-spring:
-  cloud:
-    stream:
-      bindings:
-        #这里用stream给我们提供的默认output,可以替换自定义output
-        logOutput:
-          #消息发往的目的地
-          destination: qhiot-link-stream
-          #消息发送的格式,接收端不用指定格式,但是发送端要
-          content-type: text/plain

+ 0 - 328
qhiot-link-data-server/qhiot-link-start/src/main/resources/application.yml

@@ -1,328 +0,0 @@
-##server:
-##  port: 8010
-#spring:
-##  application:
-##    name: qh-link-start
-#  # 数据源配置
-#  datasource:
-#    druid:
-#      stat-view-servlet:
-#        enabled: true
-#        loginUsername: admin
-#        loginPassword: 123456
-#        allow:
-#      web-stat-filter:
-#        enabled: true
-#    dynamic:
-#      datasource:
-#        # 主库数据源
-#        master:
-#          driver-class-name: com.mysql.cj.jdbc.Driver
-##          url: jdbc:mysql://localhost:3306/seem-link?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC
-#          url: jdbc:mysql://192.168.1.150:3306/seem-link?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC
-#          username: root
-#          password: qh-iot@2022
-#        # 从库数据源
-#      #        slave:
-#      #          # 从数据源开关/默认关闭
-#      #          url:
-#      #          username:
-#      #          password:
-#      druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
-#        # 连接池的配置信息
-#        # 初始化大小,最小,最大
-#        initial-size: 5
-#        min-idle: 5
-#        maxActive: 100
-#        # 配置获取连接等待超时的时间
-#        maxWait: 60000
-#        # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
-#        timeBetweenEvictionRunsMillis: 60000
-#        # 配置一个连接在池中最小生存的时间,单位是毫秒
-#        minEvictableIdleTimeMillis: 300000
-#        validationQuery: SELECT 1 FROM DUAL
-#        testWhileIdle: true
-#        testOnBorrow: false
-#        testOnReturn: false
-#        # 打开PSCache,并且指定每个连接上PSCache的大小
-#        removeAbandonedTimeout: 600
-#        maxOpenPreparedStatements: 100
-#        useGlobalDataSourceStat: true
-#        poolPreparedStatements: true
-#        maxPoolPreparedStatementPerConnectionSize: 20
-#        # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
-#        filters: stat
-#        # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
-#        connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
-##  #使用springboot自动装配redis
-##  redis:
-##    host: 192.168.1.150
-##    port: 6379
-##    password: qh-iot@2022
-##    database: 4
-##    timeout: 50000
-##    lettuce: # 这里标明使用lettuce配置
-##      pool:
-##        max-active: 200   #连接池最大连接数(使用负值表示没有限制)
-##        max-wait: 10000  #连接池最大阻塞等待时间(使用负值表示没有限制)
-##        max-idle: 10     #连接池中的最大空闲连接
-##        min-idle: 10     #连接池中的最小空闲连接
-##
-##
-##  #######################以下可能移除################################
-##  #  freemarker配置,替代老版本view.xml
-##  # 是否允许HttpServletRequest属性覆盖(隐藏)控制器生成的同名模型属性。
-##  freemarker:
-##    allow-request-override: false
-##    # 是否允许HttpSession属性覆盖(隐藏)控制器生成的同名模型属性。
-##    allow-session-override: false
-##    # 是否启用模板缓存。
-##    cache: false
-##    # 模板编码。
-##    charset: UTF-8
-##    # 是否检查模板位置是否存在。
-##    check-template-location: true
-##    # Content-Type value.
-##    content-type: text/html
-##    # 是否启用freemarker
-##    enabled: true
-##    # 设定所有request的属性在merge到模板的时候,是否要都添加到model中.
-##    expose-request-attributes: false
-##    # 是否在merge模板的时候,将HttpSession属性都添加到model中
-##    expose-session-attributes: false
-##    # 设定是否以springMacroRequestContext的形式暴露RequestContext给Spring’s macro library使用
-##    expose-spring-macro-helpers: true
-##    # 是否优先从文件系统加载template,以支持热加载,默认为true
-##    prefer-file-system-access: false
-##    # 设定模板的后缀.
-##    suffix: .ftl
-##    # 设定模板的加载路径,多个以逗号分隔,默认:
-##    template-loader-path: /,classpath:/META-INF/resources/
-##
-##    # 设定FreeMarker keys.
-##    settings:
-##      template_update_delay: 0
-##      classic_compatible: true
-##      default_encoding": UTF-8
-##      output_encoding": UTF-8
-##      locale": zh_CN
-##      number_format": 0.######
-##      date_format": yyyy-MM-dd
-##      time_format": HH:mm:ss
-##      datetime_format": yyyy-MM-dd HH:mm:ss
-##      template_exception_handler": com.qhiot.core.FreemarkerExceptionHandler
-##      object_wrapper": freemarker.template.DefaultObjectWrapper
-##      output_format": HTMLOutputFormat
-##  ##########################以上可能移除############################################
-##
-##
-##
-##  file-storage: #文件存储配置 支持本地存储和oss,视情况而定
-##    default-platform: aliyun-oss-1 #默认使用的存储平台
-##    thumbnail-suffix: ".min.jpg" #缩略图后缀,例如【.min.jpg】【.png】
-##    local: # 本地存储,不使用的情况下可以不写
-##      - platform: local-1 # 存储平台标识
-##        enable-storage: true  #启用存储
-##        enable-access: true #启用访问(线上请使用 Nginx 配置,效率更高)
-##        domain: "" # 访问域名,例如:“http://192.168.1.120:8030/test/file/”,注意后面要和 path-patterns 保持一致,“/”结尾,本地存储建议使用相对路径,方便后期更换域名
-##        base-path: C:/seem_file/ # 存储地址
-##        path-patterns: /seem_file/** # 访问路径,开启 enable-access 后,通过此路径可以访问到上传的文件
-##    #    huawei-obs: # 华为云 OBS ,不使用的情况下可以不写
-##    #      - platform: huawei-obs-1 # 存储平台标识
-##    #        enable-storage: false  # 启用存储
-##    #        access-key: ??
-##    #        secret-key: ??
-##    #        end-point: ??
-##    #        bucket-name: ??
-##    #        domain: ?? # 访问域名,注意“/”结尾,例如:http://abc.obs.com/
-##    #        base-path: hy/ # 基础路径
-##    aliyun-oss: # 阿里云 OSS ,不使用的情况下可以不写
-##      - platform: aliyun-oss-1 # 存储平台标识
-##        enable-storage: true  # 启用存储
-##        access-key: LTAI5t6pK24JUzSPyJF3h45Y #LTAI5t8nzF9xe4ATyFvgFjib
-##        secret-key: AYuU96ihUjOKE0Jbym7KMKyoEj3lG6 #cQr2S6uesiH8JN1xD5sCRa7V0ij8Qq
-##        end-point: oss-cn-hangzhou.aliyuncs.com
-##        bucket-name: luoj-test
-##        domain: https://luoj-test.oss-cn-hangzhou.aliyuncs.com/ #luoj-test.oss-cn-hangzhou.aliyuncs.com/ # 访问域名,注意“/”结尾,例如:https://abc.oss-cn-shanghai.aliyuncs.com/
-##        base-path: seem_file/ # 基础路径
-##  #    qiniu-kodo: # 七牛云 kodo ,不使用的情况下可以不写
-##  #      - platform: qiniu-kodo-1 # 存储平台标识
-##  #        enable-storage: false  # 启用存储
-##  #        access-key: ??
-##  #        secret-key: ??
-##  #        bucket-name: ??
-##  #        domain: ?? # 访问域名,注意“/”结尾,例如:http://abc.hn-bkt.clouddn.com/
-##  #        base-path: base/ # 基础路径
-##  #    tencent-cos: # 腾讯云 COS
-##  #      - platform: tencent-cos-1 # 存储平台标识
-##  #        enable-storage: true  # 启用存储
-##  #        secret-id: ??
-##  #        secret-key: ??
-##  #        region: ?? #存仓库所在地域
-##  #        bucket-name: ??
-##  #        domain: ?? # 访问域名,注意“/”结尾,例如:https://abc.cos.ap-nanjing.myqcloud.com/
-##  #        base-path: hy/ # 基础路径
-##  #    baidu-bos: # 百度云 BOS
-##  #      - platform: baidu-bos-1 # 存储平台标识
-##  #        enable-storage: true  # 启用存储
-##  #        access-key: ??
-##  #        secret-key: ??
-##  #        end-point: ?? # 例如 abc.fsh.bcebos.com
-##  #        bucket-name: ??
-##  #        domain: ?? # 访问域名,注意“/”结尾,例如:https://abc.fsh.bcebos.com/abc/
-##  #        base-path: hy/ # 基础路径
-##  #    upyun-uss: # 又拍云 USS
-##  #      - platform: upyun-uss-1 # 存储平台标识
-##  #        enable-storage: true  # 启用存储
-##  #        username: ??
-##  #        password: ??
-##  #        bucket-name: ??
-##  #        domain: ?? # 访问域名,注意“/”结尾,例如:http://abc.test.upcdn.net/
-##  #        base-path: hy/ # 基础路径
-##  #    minio: # MinIO,由于 MinIO SDK 支持 AWS S3,其它兼容 AWS S3 协议的存储平台也都可配置在这里
-##  #      - platform: minio-1 # 存储平台标识
-##  #        enable-storage: true  # 启用存储
-##  #        access-key: ??
-##  #        secret-key: ??
-##  #        end-point: ??
-##  #        bucket-name: ??
-##  #        domain: ?? # 访问域名,注意“/”结尾,例如:http://minio.abc.com/abc/
-##  #        base-path: hy/ # 基础路径
-##  #    aws-s3: # AWS S3,其它兼容 AWS S3 协议的存储平台也都可配置在这里
-##  #      - platform: aws-s3-1 # 存储平台标识
-##  #        enable-storage: true  # 启用存储
-##  #        access-key: ??
-##  #        secret-key: ??
-##  #        region: ?? # 与 end-point 参数至少填一个
-##  #        end-point: ?? # 与 region 参数至少填一个
-##  #        bucket-name: ??
-##  #        domain: ?? # 访问域名,注意“/”结尾,例如:https://abc.hn-bkt.clouddn.com/
-##  #        base-path: s3/ # 基础路径
-##
-##  #mqtt连接
-##
-##  mqtt:
-##    broker: tcp://192.168.1.150:1883
-##    clientId: primaryServer
-##    username: admin
-##    password: public
-##    connectionTimeout: 1001
-##    keepAliveInterval: 60
-##
-##  #链路追踪服务
-##  zipkin:
-##    base-url: http://192.168.1.150:9411
-##  sleuth:
-##    sampler:
-##      probability: 1.0
-##  jackson:
-##    #date-format: yyyy-MM-dd
-##    time-zone: GMT+8
-##  cloud:
-##    #    nacos:
-##    #      config:
-##    #        #        nacos注册地址
-##    #        server-addr: 192.168.1.120:8848
-##    #        file-extension: yml
-##    #        namespace: 1fd369d6-8a4c-4c39-9e52-2f2a6244037a
-##    #group: auth
-##    #    sentinel:
-##    #      transport:
-##    #        #Sentinel 控制台地址
-##    #        dashboard: 192.168.1.120:8081
-##    #      #      #取消Sentinel控制台懒加载
-##    #      eager: true
-##    stream:
-##      kafka:
-##        binder:
-##          #Kafka的消息中间件服务器
-##          brokers: 192.168.1.150:9092
-##          #Zookeeper的节点,如果集群,后面加,号分隔
-##          zk-nodes: 192.168.1.150:2181
-##          #如果设置为false,就不会自动创建Topic 有可能你Topic还没创建就直接调用了。
-##          auto-create-topics: true
-##      bindings:
-##        #这里用stream给我们提供的默认output,可以替换自定义output
-##        logOutput:
-##          #消息发往的目的地
-##          destination: stream-demo
-##          #消息发送的格式,接收端不用指定格式,但是发送端要
-##          content-type: text/plain
-##
-###   启用Feign客户端负载均衡
-##feign.sentinel.enabled: true
-###mybatis:
-###  mapper-locations: classpath*:com/qhiot/**/*Mapper.xml
-###  type-aliases-package: com.qhiot.**.model
-###  config-location: classpath:spring/mybatis-config.xml
-###
-#### tk-mybatis 配置
-###mapper:
-###  mappers:
-###    - com.qhiot.core.basemapper.Mapper
-###  not-empty: false
-###  identity: MYSQL
-###
-###pagehelper:
-###  helperDialect: mysql
-###  reasonable: true
-###  supportMethodsArguments: true
-###  params: count=countSql
-##
-##mybatis-plus:
-##  #打印sql日志
-##  configuration:
-##    #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-##    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
-##  mapper-locations: classpath*:com/qhiot/**/*.xml
-##
-###=============================================
-### 缓存
-###=============================================
-##shiro:
-##  redis:
-##    host: 192.168.1.150
-##    port: 6379
-##    password: qh-iot@2022
-##    database: 5
-##    timeout: expire
-##
-##  #=============================================
-##  # Kafka
-##  #=============================================
-##  # 连接kafka,集群地址用“,”隔开
-##
-##
-##
-##
-##
-##  #=============================================
-##  # Elasticsearch
-##  #=============================================
-##  # qhiot-log2es & qhiot-log2es-browser
-##easy-es:
-##  enable: true # 是否开启EE自动配置
-##  address: 192.168.1.150:9200 # es连接地址+端口 格式必须为ip:port,如果是集群则可用逗号隔开
-##  schema: http # 默认为http
-##  username: elastic #如果无账号密码则可不配置此行
-##  password: WG7WVmuNMtM4GwNYkyWH #如果无账号密码则可不配置此行
-##
-##
-##influxDB:
-##  host: http://192.168.1.150
-##  #port端口
-##  port: 8086
-##  #数据库名
-##  database: seem
-##  #用户名
-##  username: admin
-##  #密码
-##  password: qh-iot@2022
-##  #保存策略,autogen是永久保存
-##  retentionPolicy: autogen
-##  #是否启用批量写入
-##  enableBatch: true
-##  #批量写入累计条目
-##  maxPoints: 1000
-##  #批量写入间隔时间 ms
-##  maxTime: 5000

+ 0 - 2
qhiot-spring-test/src/main/resources/bootstrap.yml

@@ -11,5 +11,3 @@ spring:
     active: @profile.active@
   autoconfigure:
     exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
-  mqtt:
-    clientId: testPrimaryServer

+ 2 - 2
qhiot-web/src/main/resources/application.yml

@@ -10,8 +10,8 @@ core:
 spring:
   application:
     name: mqtt-link-server
-  aop:
-    proxy-target-class: true
+#  aop:
+#    proxy-target-class: true
 #  datasource:
 #    driver-class-name: com.mysql.cj.jdbc.Driver
 #    #url: jdbc:mysql://124.71.171.25:3306/seem-link?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC