455
订阅者
无数据24 小时
无数据7 天
+230 天
帖子存档
455
Dear students,
tomorrow there is drive for Java candidates. So the students should come in formal dress with the updated resume along with your laptops.
Topics: Logics with Arrays.
Every one attend 9am
Exam 2pm
455
How To Confiure NetFlix Eureka Server in Spring Boot REST API application--------------------------------------------------------------------
Steps to Configure Eureka Server for REST Applocation--------------------------------------------------------
Step1: create spring boot Application
with following dependencies---------------------------
1. sprin web2. Spring boot Dev Tools
3. Eureka Server---------------------------
--> After Created Spring Boot Applicationto enable eureka server into our application
--> Application.java class Annotate with@EnableEurekaServer annotation
--> By Default Eureka Server running 8761 port number
--> to enable eurak server we need to privide configuration
details in application.properties or application.yml file.
==================================================
Required files Are--------------------
Application.java @SpringBootApplication+@EnableEurekaServerapplication.ymp --> configure eureka server name and port number
----------------------------------------------------------------package com.cloud;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication@EnableEurekaServer
public class MyeurekaServerApplication {
public static void main(String[] args) { SpringApplication.run(MyeurekaServerApplication.class, args);
}
}
=============================================================application.yml
--------------------
eureka: client:
registerWithEureka: false fetchRegistry: false
server: port: 8761
spring: application:
name : MYEUREKA-SERVER
