Build the project using Gradle Clean Build
Now the run the application-it will be live on port 8080 of your localhost
Now open POSTMAN with the localhost:8080 url followed by /employees
According to various Requests select required Post,Get,Delete,Put options
The embed database can also be accessed through /h2-console (all the configurations are provided in application.properties)
DevDB and ProdDB implements the DB interface which has public method getData which returns a string depending upon the class.
AppConfig class(with @Configuration annotation) has 2 Beans defined for eaach of the DB-type classes.It also mentions the condition on the property defining when to instantiate which class.
This dependency to be injected is mentioned in application.properties.
Several request methods are available(like GET,POST,DELETE,PUT)
This has been achieved through 3 layer structure(MVC) -
Presentation Layer(used to interact with the client)
Service Layer(contains the business logic)
Persistence Layer(manages the database/repository)