Good morning
I created a microservice in Spring Boot using Netflix Eureka, everything is working perfectly and it ends up running on the next URI:
-> http://localhost:8082/catalogs
My question is whether instead of using the localhost and port, I can use the spring.application.name getting:
-> http://catalog-service/catalogs
If anyone knows how to do that and share it, I'd be grateful.
Below follows the application.properties of Eureka Server and Eureka Client:
Server:
```spring.application.name=eureka-server
server.port=8761
#don't register itself as a client
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
logging.level.com.netflix.eureka=ON
logging.level.com.netflix.discovery=ON```
Client:
```#Eureka
spring.application.name=catalog-service
server.port=8762
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/
eureka.client.service-url.default-zone=http://localhost:8761/eureka/
instance.preferIpAddress=true```
Thank you for the help