Hi guys in this lesson, we will create connection to other services from cursors. We can connect to other services in Spring Cloud easily with using Spring Cloud open tea. For example, we want to get user names with IDs from users. To do it, first of all, we will create them. Then we will create that user client interface under intercom package. Later, we will add a thin client annotation with user service to connect user service And we will send POST requests to user service to get user names according to our user ID list with service names path Later we can call it from seaplane controller class.
To do it. First of all we will create controller package under our main package. Then we will create cruise controllers on the controller package Course controllers will be rest controllers. In our case, we have user client so we can inject it with sibling auto wired interface. Then we can use it in our controller class like normal instance. To enable thin client in spring configuration, we should add annotation to our main class like enable thin clients.
Okay, that's all about thin client. Thank you.