李峰测试

来自李峰




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);

}

}

来源百度

你可能感兴趣的:(李峰测试)