一、编写Eureka Server 1.1 添加依赖 org.springframework.cloud spring-cloud-starter-netflix-eureka-server 2.1.1.RELEASE 1.2 编写启动类 @SpringBootApplication @EnableEurekaServer public class EurekaApplication { public static void main( String[] args ) { SpringApplication.ru