Microservices case study tweet dbrestapi
What you will learn here about Spring boot
- Microservices case study tweet dbrestapi
Please click on below link to download sample project
Download tweet DbRestApi sample project (712 downloads)
Microservices case study tweet dbrestapi
Please follow the following steps to know how to implement restapi for tweets
1)First create maven project
2)Add maven dependency for mongodb and web dependency which is shown below
3)Please add following properties in application.properties which is shown below
4)Now please create Post class which is shown below
5)Now please create Userposts class which is shown below
6)Now please create mongodb repository for Userposts which is shown below
7)Now please implement restcontroller for different operations which is shown below
8)Now please run your DbRestApiApplication