79140480

Date: 2024-10-30 09:41:50
Score: 0.5
Natty:
Report link

I found this configuration on Spring Getting Started Tutorial (https://spring.io/guides/gs/service-registration-and-discovery) for Eureka service and client. It seems that there is no need to include the "service-url" property, as this is set by default by spring. I would recommend using something like this.

spring:
    application:
      name: eureka-server
server:
    port: 8761
eureka:
    client:
     register-with-eureka: false
     fetch-registry: false
logging:
    level:
     com.netflix.eureka: OFF
     com.netflix.discovery: OFF

As for the client, using the defaults everything should work out of the box.
Be careful to include the necessary @Enable annotations for Eureka!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Enable
  • Low reputation (0.5):
Posted by: AlexAlbu