package com.spring.sample.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;

@EnableDiscoveryClient
@EnableEurekaServer
@SpringBootApplication
public class EurekaServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(EurekaServiceApplication.class, args);
	}
}

@@ -446,16 +446,373 @@
 args) %7B%0A
+%09%09String is_remote = System.getProperty(%22IS_REMOTE%22);%0A%09%09if (is_remote != null) %7B%0A%09%09%09if (!System.getProperty(%22IS_REMOTE%22).equalsIgnoreCase(%22true%22) && !System.getProperty(%22IS_REMOTE%22).equalsIgnoreCase(%22yes%22)) %7B%0A%09%09%09%09System.out.println(%22LOCAL-APPLICATION.PROPERTIES is loaded.%22);%09%09%09%09%09%0A%09%09%09%09System.setProperty(%22spring.config.name%22, %22local-application%22);%0A%09%09%09%7D%0A%09%09%7D%0A
 %09%09Spring

Enable local properties