• 【Spring Cloud】EUREKA配置


    HDD_EUREKA_SERVER
    application.yml

    server:
      port: 8101
    eureka:
      instance:
        hostname: localhost
      client:
        register-with-eureka: false
        fetch-registry: false
    ==============================================================
    HDD_SHIPPING_SERVICE
    application.yml

    server:
      port: 8084
    logging:
      config: classpath:logback.xml
      level:
        org.springframework: error
        com.ibatis: debug
    spring:
      datasource:
        url: jdbc:mysql://10.19.4.16:3306/hdd_yttmb_stp?useUnicode=true&characterEncoding=utf-8
        username: sa
        password: mysql
        type: com.alibaba.druid.pool.DruidDataSource
        druid:
          max-active: 20
          initial-size: 1
          min-idle: 3
          max-wait: 60000
          time-between-eviction-runs-millis: 60000
          min-evictable-idle-time-millis: 300000
          test-while-idle: true
          test-on-borrow: false
          test-on-return: false
    mybatis:
      mapperLocations: classpath*:net/huadong/*/*/mapper/*.xml
      configLocation: classpath:mybatis-config.xml
    debug: true
    ——————————————————————————————————————————————————————————————————————————————
    bootstrap.yml

    spring:
      application:
        name: shippingService
      cloud:
        config:
          enabled: true
          discovery:
            enabled: true
            service-id: config #1
    eureka:
      instance:
        non-secure-port: ${server.port:8084}
      client:
        service-url:
          defaultZone: http://${eureka.host:localhost}:${eureka.port:8101}/eureka/
    =================================================================================================
    HDD_SHIPPING_WEB
    application.yml

    server:
      port: 80

    kaptcha:
      session:
        key: KAPTCHA_SESSION_KEY
      obscurificator:
        impl: com.google.code.kaptcha.impl.ShadowGimpy
      noise:
        impl: com.google.code.kaptcha.impl.NoNoise
      image:
         90
        height: 33
      textproducer:
        font:
          size: 26
          color: black
        char:
          length: 4
          space: 5

      background:
        clear:
          from: 247,247,247
          to: 247,247,247
    ————————————————————————————————————————————————————————————————————————
    bootstrap.yml

    spring:
      application:
        name: web

    eureka:
      instance:
        non-secure-port: ${server.port:80}
      client:
        service-url:
          defaultZone: http://${eureka.host:localhost}:${eureka.port:8101}/eureka/

  • 相关阅读:
    Jeecms3.x 常用标签使用总结
    MySQL的常用参数设置
    如何让iframe透明
    转载 张子阳 学习记录 c#网络编程
    Automate download of Realtime Trade and MarketDepth stocks demonstration
    c#2.0 锐利体验 视频链接 (李建忠老师主讲)
    转载 张子阳 学习记录 c#网络编程 5
    关于连接 providers 的一些代码 (学习QD)
    转载张子阳 学习记录 c#网络编程 4
    转载 张子阳 学习记录 c#网络编程
  • 原文地址:https://www.cnblogs.com/CESC4/p/7721864.html
Copyright © 2020-2023  润新知