Commit b510c22f authored by Benjamin Wilms's avatar Benjamin Wilms

Refactoring...

parent fa89bf4d
......@@ -2,12 +2,12 @@ package de.codecentric.resilience.eureka;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
@EnableEurekaClient
public class EurekaServerApp {
public static void main(String[] args) {
......
......@@ -6,6 +6,7 @@ spring:
eureka:
instance:
hostname: eureka-second-server
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
......
......@@ -2,6 +2,7 @@ package de.codecentric.resilience.eureka;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
......
server.port=8761
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
logging.level.com.netflix.eureka=OFF
logging.level.com.netflix.discovery=OFF
security.basic.enabled=false
management.security.enabled=false
\ No newline at end of file
server:
port: 8761
spring:
application:
name: eureka-server
eureka:
instance:
hostname: eureka-server
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://localhost:8762/eureka/
fetch-registry: false
register-with-eureka: false
security:
basic:
enabled: false
management:
security:
enabled: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment