Adding eureka server and eureka client dependencies is a faulty situation!
When using Eureka Client in Spring Cloud applications, the order of dependencies in your pom.xml can cause startup issues.
You may encounter errors starting your Eureka client service even when you have only the client dependency (not the server). This typically happens when "Internal dependencies" are listed first in your pom.xml.
Rearrange your dependencies in the following order:
Spring Boot Starters
Spring Cloud dependencies
Internal dependencies
Other dependencies
This order ensures proper dependency resolution and prevents startup conflicts between your Eureka client configuration and other components.