"Spring" Eureka configuration

Source: Internet
Author: User

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:

Kaptcha:
session:
Key:kaptcha_session_key
Obscurificator:
Impl:com.google.code.kaptcha.impl.ShadowGimpy
Noise:
impl:com.google.code.kaptcha.impl.NoNoise
Image:
width: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:
Client
Service-url:
defaultzone:http://${eureka.host:localhost}:${eureka.port:8101}/eureka/

"Spring" Eureka configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.