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 (26 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
mongodb maven dependency

3)Please add following properties in application.properties which is shown below
mongodb spring boot properties configuration

4)Now please create Post class which is shown below
Microservices case study tweet dbrestapi spring boot

5)Now please create Userposts class which is shown below
spring boot Microservices case study tweet dbrestapi

6)Now please create mongodb repository for Userposts which is shown below
dbrestapi tweet case study microservices

7)Now please implement restcontroller for different operations which is shown below
Microservices case study tweet dbrestapi

8)Now please run your DbRestApiApplication

You may also like...