zoukankan      html  css  js  c++  java
  • spring cloud Alibaba nacos 整合Neo4j配置

    # spring配置
    spring: 
      redis:
        database: 6
        host: 192.168.8.248
        port: 6379
        password: 
      data:
        neo4j:
          uri: bolt://192.168.8.202:7687
          username: neo4j
          password: huajuntec4j  
      datasource:
        druid:
          stat-view-servlet:
            enabled: true
            loginUsername: admin
            loginPassword: 123456
        dynamic:
          druid:
            initial-size: 5
            min-idle: 5
            maxActive: 20
            maxWait: 60000
            timeBetweenEvictionRunsMillis: 60000
            minEvictableIdleTimeMillis: 300000
            validationQuery: SELECT 1 FROM DUAL
            testWhileIdle: true
            testOnBorrow: false
            testOnReturn: false
            poolPreparedStatements: true
            maxPoolPreparedStatementPerConnectionSize: 20
            filters: stat,wall,slf4j
            connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
          datasource:
              # 主库数据源
              master:
                driver-class-name: com.mysql.cj.jdbc.Driver
                url: jdbc:mysql://192.168.8.248:3306/huajun-cloud-kgbuilder?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
                username: root
                password: root
              # 从库数据源
              # slave:
                # username: 
                # password: 
                # url: 
                # driver-class-name: 
          # seata: true    # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭
    
    # seata配置
    seata:
      # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启
      enabled: false
      # Seata 应用编号,默认为 ${spring.application.name}
      application-id: ${spring.application.name}
      # Seata 事务组编号,用于 TC 集群名
      tx-service-group: ${spring.application.name}-group
      # 关闭自动代理
      enable-auto-data-source-proxy: false
      config:
        type: nacos
        nacos:
          serverAddr: 192.168.8.201:8848
          group: SEATA_GROUP
          namespace: ffbdf183-c35e-41ea-8166-e807b6968b93
      registry:
        type: nacos
        nacos:
          application: seata-server
          server-addr: 192.168.8.201:8848
          group: SEATA_GROUP
          namespace: ffbdf183-c35e-41ea-8166-e807b6968b93
    
    # mybatis配置
    mybatis-plus:
        # 搜索指定包别名
        typeAliasesPackage: com.huajun.kgbuilder
        # 配置mapper的扫描,找到所有的mapper.xml映射文件
        mapperLocations: classpath:mapper/**/*.xml
        global-config:
          db-config:
            id-type: assign_uuid
            capital-mode: false
    
            logic-delete-field: delFlag  # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
            logic-delete-value: 2 # 逻辑已删除值(默认为 1)
            logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
    
    # swagger配置
    swagger:
      title: 知识图谱构建工具接口文档
      license: Powered By huajun
      licenseUrl: http://www.huajuntec.com.cn
  • 相关阅读:
    解析中间人攻击(4/4)---SSL欺骗
    解析中间人攻击(3/4)---会话劫持
    解析中间人攻击(2/4)---DNS欺骗
    解析中间人攻击(1/4)---ARP缓存中毒
    (转)常见的HTTPS攻击方法
    转载 OpenUrl
    如何安全的存储密码
    本地存储密码的安全设计
    硬件断点和软件断点的区别
    网站防止CC攻击的方法
  • 原文地址:https://www.cnblogs.com/Jeely/p/15188006.html
Copyright © 2011-2022 走看看