19 Starting a Eureka server - Spring Boot Microservices Level 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 118

  • @TheMarkoni1985
    @TheMarkoni1985 3 ปีที่แล้ว +16

    You need to be born to be a good teacher, and this guy is one of them :) Thank you, I always watch your videos with pleasure :)

  • @codingmechanic8954
    @codingmechanic8954 5 ปีที่แล้ว +115

    so at 5:45 when he runs it, I had to add these lines to the applications.properties file for mine to run:
    I'm using STS 4 instead of IntelliJ
    server.port=8761
    eureka.client.register-with-eureka=false
    eureka.client.fetch-registry=false

    • @deepanshuchauhan5022
      @deepanshuchauhan5022 4 ปีที่แล้ว +3

      thanks this is also happen with me.

    • @deduce2630
      @deduce2630 4 ปีที่แล้ว +2

      Wow....thanks a lot...u saved my day

    • @JohnLiuFromHK
      @JohnLiuFromHK 4 ปีที่แล้ว +1

      what does the bottom 2 lines mean?

    • @ubaidkz5065
      @ubaidkz5065 4 ปีที่แล้ว +1

      Thanks

    • @bookread5208
      @bookread5208 4 ปีที่แล้ว

      Thanks :)

  • @sergeiirinalutsev6154
    @sergeiirinalutsev6154 5 ปีที่แล้ว +38

    don't need to add any dependency. just write in application.properties : server.port=8061
    eureka.client.register-with-eureka=false
    eureka.client.fetch-registry=false

  • @oajamfibia
    @oajamfibia 5 ปีที่แล้ว +36

    server.port=8761
    eureka.client.register-with-eureka=false
    eureka.client.fetch-registry=false

    • @lucafaccio524
      @lucafaccio524 5 ปีที่แล้ว +1

      i will remember to check the comments before losing time browsing for solution! xD

    • @kartikeysingh9301
      @kartikeysingh9301 5 ปีที่แล้ว +1

      It's funny how despite him actually mentioning this in the video itself, we lost all hope when we got those errors upon running the server :D

  • @purveshnar88
    @purveshnar88 4 ปีที่แล้ว +28

    It worked for me when i added following 3 lines in application.properties:
    server.port=8061
    eureka.client.register-with-eureka=false
    eureka.client.fetch-registry=false

    • @vasuroy6214
      @vasuroy6214 4 ปีที่แล้ว

      Worked for me also

    • @uma_mataji
      @uma_mataji 4 ปีที่แล้ว

      thanks Purvesh,it worked for me also after using the above properties.

    • @ardaks2614
      @ardaks2614 4 ปีที่แล้ว +6

      NOT 8061, BUT 8761. Change it please, I first put 8061 because of your comment, but then in the next video it leads to error in starting movie-info-service project

    • @radarsh3042
      @radarsh3042 3 ปีที่แล้ว

      Thank you, this helped a lot

  • @ShinAkuma
    @ShinAkuma 3 ปีที่แล้ว +1

    I've added the JAX-B dependencies in my project all of them yet still I keep getting the error "Implementation of JAXB-API has not been found on module path or classpath.".
    What else can I do ?
    Anyone else having this problem ?
    *EDIT*: Fixed it.
    Turns out you need a specific version of the jax-b api and runtime. 2.3.1 and 2.3.3 respectively. I added the latest versions at first which didn't work.

    • @dd1.d
      @dd1.d 3 ปีที่แล้ว

      that is weird

  • @ahmetyasarozer
    @ahmetyasarozer 3 ปีที่แล้ว

    Your videos are really healpful. Thanks a lot Koushik

  • @mohansrinivas6525
    @mohansrinivas6525 5 ปีที่แล้ว +1

    Am trying to use the discovery-server archived in github but the Sync is failing though I am using Java11. I am seeing all the dependencies added in pom.xml are mentioned but still couldn't solve the error.

  • @MyBinaryLife
    @MyBinaryLife 2 ปีที่แล้ว +2

    i found with java 17 i didnt need all the jaxb dependencies in my pom.xml, and everything worked fine as far as i can tell. configured the port in application.props. i think the he forgot to configure it in the tut because he had downloaded a previously configured file from the github to save time, so he didnt need to change it.

  • @ashuit87
    @ashuit87 2 ปีที่แล้ว

    how can we register eureka client on ssl enabled eureka server? I am using openshift but it is not registering..

  • @agbonirojacinta9742
    @agbonirojacinta9742 2 ปีที่แล้ว

    I followed the video but am still having errors, please can you help me?

  • @JohnDoe-ej6vm
    @JohnDoe-ej6vm 4 ปีที่แล้ว

    followed exactly as instructed in the video. but a lot of errors . unable to continue this series . please anyone help

  • @NIs171
    @NIs171 3 ปีที่แล้ว

    I am getting Cannot execute request on any known server , I am not able to connect client with eureka server.
    Any help ?

  • @dileepnb01
    @dileepnb01 3 ปีที่แล้ว +1

    I'm sorry eureka doesn't start by default at 8761 just like other spring boot apps it starts at port 8080 unless we specify it happened in my case with STS 4

  • @abhishekkumar-yh3pp
    @abhishekkumar-yh3pp 2 ปีที่แล้ว +1

    was getting errors: java.lang.NoClassDefFoundError: com/sun/xml/bind/Util...., after hit and trial resolved the issue by changing the jaxb-runtime version to 3.0.2

  • @ItsGosho
    @ItsGosho 5 ปีที่แล้ว +2

    I have never seen better Indian teacher :O

    • @ShinAkuma
      @ShinAkuma 4 ปีที่แล้ว

      Java Brains(Koushik) and Telusko(Navin Reddy) are top level teachers.

    • @ItsGosho
      @ItsGosho 4 ปีที่แล้ว

      @@ShinAkuma 100% agree!

  • @moratrolls874
    @moratrolls874 3 ปีที่แล้ว +2

    In JDK 16 do not need to add JAX dependencies.

    • @kpl_sh
      @kpl_sh 3 ปีที่แล้ว +1

      thanks you saved my day

  • @michaelbronshteyn4190
    @michaelbronshteyn4190 5 ปีที่แล้ว +1

    Thanks for a great post on Java 11 and JAXB. It was the problem I ran into and trying to solve. Your video pointed me to the right direction.

  • @vinodkarathiyaofficial
    @vinodkarathiyaofficial 6 ปีที่แล้ว +2

    Hello Sir,
    As we saw that from output console that Eureka server started and after that Tomact server also started so Eurek is using tomact sever's instance using port no 8761 or how it configured under spring project? Request you to highlight the same.

    • @siddharthsharma8297
      @siddharthsharma8297 5 ปีที่แล้ว +1

      stackoverflow.com/questions/46131196/com-netflix-discovery-shared-transport-transportexception-cannot-execute-reques

  • @HallaBolful
    @HallaBolful 3 ปีที่แล้ว +1

    There are some changes now. Server port defaults to 8080. @EnableEurekaServer is not optional.

  • @sumit12345yadav
    @sumit12345yadav 4 ปีที่แล้ว +1

    the default port where eureka server starts is 8080, port 8761 doesnt exist by default.

  • @mohammedsardar3779
    @mohammedsardar3779 5 ปีที่แล้ว +1

    Any reason why they are separating JAXB from jdk ? To make JDK light weight ?

  • @mdrashidalam5282
    @mdrashidalam5282 4 ปีที่แล้ว

    Eudeka dashboard is not showing when login default port 8080

    • @ValmikKalathia
      @ValmikKalathia 3 ปีที่แล้ว +1

      Add these lines in your application.properties file
      server.port=8761
      eureka.client.register-with-eureka=false
      eureka.client.fetch-registry=false
      Add @EnableEurekaServer annotation in your DiscoveryServerApplication.java file
      Run the application and see if it is showing up Eureka Dashboard on following URL
      localhost:8061/

  • @brotherly9058
    @brotherly9058 5 ปีที่แล้ว +1

    I see
    Instances currently registered with Eureka
    works when I run on the same localhost. What if I have different microservices URLs, how could I registered my clients to the server.

  • @hrinternal5051
    @hrinternal5051 4 ปีที่แล้ว

    can you give your opinion on how to deploy the eureka registry in tomcat?

  • @abcd584359
    @abcd584359 4 ปีที่แล้ว +2

    Hi Koushik,
    Thank you so much for all videos. It helps build my confidence.
    A quick note: When I created Eureka server and started it, it started on port 8080. Therefore, I am assuming the default port is 8080 and not 8761. I had to add that port(8761) in the application.properties. Plz correct me if I am wrong.
    Thank you again :)

    • @subhambiswas2180
      @subhambiswas2180 4 ปีที่แล้ว

      Yes the default port is 8080. He is overriding the port explicitly to 8761. He might have misspoken it.

    • @subhambiswas2180
      @subhambiswas2180 4 ปีที่แล้ว

      @Siitesh H Yeah that's what. The default is 8080 but he is explicitly setting it to 8761.

  • @suneesh0388
    @suneesh0388 5 ปีที่แล้ว

    I am stuck !!! All my micro services running in SSL enabled tomcat server and everyone is up and running in Eureka service window ( I can see all the MS registered in it ) but communication between ms is not happening .. pls help me

    • @vedatapuk2214
      @vedatapuk2214 4 ปีที่แล้ว

      Have you solved the problem or not?

  • @JobinFrost
    @JobinFrost 6 ปีที่แล้ว +1

    If Eureka Server itself can act as a client and there can be more than one eureka server that can provide the discovery service then should there be a eureka server that discovers these eureka servers? I'm confused!!

    • @uma_r
      @uma_r 5 ปีที่แล้ว

      please don't play with words.

  • @claudiotorres9138
    @claudiotorres9138 4 ปีที่แล้ว

    it won't download the javax dependencies :o

  • @truongtuan7815
    @truongtuan7815 5 ปีที่แล้ว

    Can you do it on jdk 1.8, maven 3.6.2
    I tried it and it didn't work, the file pom failed
    Help me, please!

    • @codetolive27
      @codetolive27 5 ปีที่แล้ว

      I am using jdk 1.8 and noticed a comment on this video with following details

    • @codetolive27
      @codetolive27 5 ปีที่แล้ว +2

      server.port=8761
      eureka.client.register-with-eureka=false
      eureka.client.fetch-registry=false
      Add this to application.properties. This was posted in comment section and it worked for me

    • @truongtuan7815
      @truongtuan7815 5 ปีที่แล้ว

      @@codetolive27 thank!

  • @Arnav_016
    @Arnav_016 2 ปีที่แล้ว

    if their is an error Error creating bean with name 'scopedTarget.eurekaClient' defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.discovery.EurekaClient]: Factory method 'eurekaClient' threw
    add this:-
    com.sun.jersey.contribs
    jersey-apache-client4
    1.19.4

  • @ErfanAhmed
    @ErfanAhmed 4 ปีที่แล้ว +1

    I have to as you Koushik, how do you actually learn new techs? What is the approach that you follow? Can you please tell?

  • @romantsyupryk3009
    @romantsyupryk3009 4 ปีที่แล้ว

    Thanks so much for this tutorial.

  • @ZionREI_CN
    @ZionREI_CN 4 ปีที่แล้ว +1

    People now uses Kubernetes, do I still needs to learn Eureka?

  • @dileepnb01
    @dileepnb01 3 ปีที่แล้ว

    In Java 8 as well it asked those dependencies for me

  • @Abd71
    @Abd71 4 ปีที่แล้ว +1

    I had to set the port for eureka server "server.port=8761" on the application. properties file, otherwise it was giving me error

    • @Abd71
      @Abd71 4 ปีที่แล้ว

      he does mention it at the end 7:36

    • @srdjanstancic1163
      @srdjanstancic1163 3 ปีที่แล้ว

      love you

  • @saadkhanmj5335
    @saadkhanmj5335 5 ปีที่แล้ว

    which ide or editor are you using??

  • @Lokere
    @Lokere 4 ปีที่แล้ว +1

    Hi brother. Do you know Phyton3 language and artificial intelligence? Write a program for me, I will pay money for the work.

  • @deepashrihk2120
    @deepashrihk2120 5 ปีที่แล้ว +3

    Sir please include java/spring certificate signature validations tutorials. This would be really helpful for us.

  • @srujanb174
    @srujanb174 5 ปีที่แล้ว

    can i get the repository url

    • @tarasv7122
      @tarasv7122 5 ปีที่แล้ว +1

      here it is: github.com/koushikkothagal/spring-boot-microservices-workshop

  • @JavaWallah-tp3ue
    @JavaWallah-tp3ue 4 ปีที่แล้ว

    Why did u create separate spring boot project for Eureka Server ??? Can we add Eureka Server in MoviesCatalogService ?????

    • @gillianbladen-clark7049
      @gillianbladen-clark7049 4 ปีที่แล้ว

      That's the whole concept of microservices that Koushik covered in the earlier lectures. Instead of having one monolithic application, the apps are separated out into smaller Spring Boot applications that call each other rather than having dependencies.

  • @ljka
    @ljka 2 ปีที่แล้ว

    My career goal is to become the best Software Architect and be like you, or even better! Im dreaming too high, arent i? 😅

  • @ramdanisalah3328
    @ramdanisalah3328 ปีที่แล้ว

    men i need this course

  • @ashrafm3564
    @ashrafm3564 4 ปีที่แล้ว

    voice is not audible

  • @radarsh3042
    @radarsh3042 3 ปีที่แล้ว

    If the eureka is not starting
    add these 3 lines to application.properties file
    server.port=8761
    eureka.client.register-with-eureka=false
    eureka.client.fetch-registry=false

  • @nikhilraj9524
    @nikhilraj9524 5 ปีที่แล้ว

    My eureka server is default starting on 8080. I had to give server.port= 8761

  • @genuine.identity
    @genuine.identity 3 ปีที่แล้ว

    Thanks

  • @pablocaiza.
    @pablocaiza. 2 ปีที่แล้ว

    god

  • @akashverma7881
    @akashverma7881 3 ปีที่แล้ว

    So yes I'm running
    eureka server
    without JAX-B dependencies
    on Java 11.
    BUT I DID NOT GET ANY ERROR IN SERVER START-UP!! It runs just fine and able to open the web ui at URI localhost:8080/
    Also as per koushik the default port is 8761 but its opening at 8080. My Application.property is blank.
    Can anyone suggest why the behaviour or Anyone else face same?! Thanks

  • @ashaynayak5259
    @ashaynayak5259 3 ปีที่แล้ว +2

    No need to add those extra dependencies. Simply add below lines to the applications.properties file:
    server.port=8761
    eureka.client.register-with-eureka=false
    eureka.client.fetch-registry=false

    • @radarsh3042
      @radarsh3042 3 ปีที่แล้ว

      Thank you, this helped a lot

  • @sureshpathak2008
    @sureshpathak2008 2 ปีที่แล้ว +2

    application.properties:
    eureka.client.registerWithEureka=false
    eureka.client.fetchRegistry=false

  • @rakshitpant5183
    @rakshitpant5183 4 ปีที่แล้ว +1

    I created 2.3.4 version maven project but dependencies are not resolving. Please help!!!