I made one authentication-service to handle profile management and authentication (login and registering new user) and another home-service for showing the web pages related to home page and other pages etc.
For now i just want to go to the authentication-service once i go to localhost:8079 (port number of api gateway). How to do that?
I'm using consul instead of eureka.
Dependencies installed in authentication-service - spring-cloud-starter-consul-discovery, spring-cloud-starter-openfeign
Dependencies installed in home-service - spring-cloud-starter-config, spring-cloud-starter-consul-discovery, spring-cloud-starter-openfeign
Other dependencies are security, thymeleaf, jpa, mysql, jjwt
I have used enable discovery client annotation in both services main application file. I run consul.exe using cmd and it shows both the services. I also made one gateway with enable discovery client annotation.