I was using http://localhost:8761/eureka/ which was printed in the Springboot startup console then I was getting the error "Whitelabel Error Page This application has no explicit mapping for /error" enter image description here
After removing the eureka/ from the ULR it worked. working URL: http://localhost:8761/
Note: I have to define server.port=8761 in the application explicitly.properties file