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);
}
}
来源百度
网友评论