springboot

李峰测试

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

}

}

来源百度
上一篇 下一篇

猜你喜欢

热点阅读