# bs-server-eureka **Repository Path**: SpringCloudTestGroup/bs-server-eureka ## Basic Information - **Project Name**: bs-server-eureka - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-11-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # bs-server-eureka SpringCloud实战1-Eureka #### 项目介绍 SpringCloud-注册中心 #### 软件架构 软件架构说明 #### 安装教程 1. 父类 自行定义-参考 参考:[bs-cloud-parent](https://gitee.com/SpringCloudTestGroup/bs-cloud-parent) ``` com.example bs-cloud-parent 0.0.1-SNAPSHOT ``` 2. spring-cloud-starter-eureka-server依赖 ``` org.springframework.cloud spring-cloud-starter-netflix-eureka-server ``` 3. 启动类添加@EnableEurekaServer,启用注册中心服务 ``` package com.example.eureka; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; @SpringBootApplication`启动标记` @EnableEurekaServer`标记注册中心服务器端` public class EurekaServerApplication { public static void main(String[] args) { long starTime = System.currentTimeMillis(); SpringApplication.run(EurekaServerApplication.class, args); long endTime = System.currentTimeMillis(); long time = endTime - starTime; System.out.println("\nStart Time: " + (time / 1000) + " s"); System.out.println("..............................................................."); System.out.println("..................Service starts successfully.................."); System.out.println("..............................................................."); } } ``` 4. 管理 ![注册中心](https://images.gitee.com/uploads/images/2018/1213/145943_08f72716_1680448.png "a.png") 1. bs-cloud-parent 是自定义的父工程 2. xxxx 3. xxxx #### 参考贡献 主要参考:https://www.cnblogs.com/huangjuncong/p/9020474.html