李峰测试
2018-03-02 本文已影响0人
lifewithoutif
package com.eureka.cloud;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import java.util.Scanner;
@SpringBootApplication
@EnableEurekaServer
public class eurekaService {
public static void main(String[] args) {
Scanner scan =new Scanner(System.in);
String profile =scan.next();
new SpringApplicationBuilder(eurekaService.class).profiles(profile).run( args);
}
}
