InventoryController is similar to OrderController, but it uses Apache Geode, so we will need to use one of the profiles defined in the original application for that.
Go to the InventoryController project in your IDE, and perform the steps described in section Config Data Source
To set the service port (the default port 8080 has been taken by OrderController), open the application.properties file and add the property server.port=8081
In addition, add the property spring.profiles.active=local so the GemFire will be used locally. You can view the profile in the file spring-config.xml.
Run the OpenRewrite recipes as you did for OrderController service and review the changes (you can use the git in VSCode).
Open the file src/main/java/com/oms/inventorycontroller/InventoryControllerApp.java and add the annotation @EntityScan(basePackages = { "com.oms.entity" })
and @ComponentScan("com.oms")
with the required import statements to the application class, as you did for Order Controller
Build and Run InventoryController as you did for Order Controller.
Test the APIs by switching to Thunder Client in VSCode and sending the APIs for Inventory in the OMS Services collection.
Commit the changes to your local git repo (optional).