zoukankan      html  css  js  c++  java
  • 【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/

  • 相关阅读:
    春招实习_oppo一面 4.8 (40min)
    春招实习_腾讯突击面试 3.31
    github使用
    手把手教你用SonarQube+Jenkins搭建--前端项目--代码质量管理平台 (Window系统)
    博客园右下角添加看板娘
    微信公众号接个图灵机器人
    [转]HTML5基本布局
    微信群二维码怎么长期有效,微信群二维码记久有效,微信群二维码过期失效了
    Redis查看当前连接数和最大连接数
    删除表前判断表是否存在SQL
  • 原文地址:https://www.cnblogs.com/CESC4/p/7721864.html
Copyright © 2011-2022 走看看