First create Spring REST controller to process the request.
@RestController@RequestMapping(value = “/json”)public class RESTController{
@ResponseBody@RequestMapping(value = “/city”, method =…
Suppose we need to create an API which requires user authentication to access that…
First go to command line and create a simple project with maven.
mvn…
Spring behaves as a factory of beans, in other words it act as a bean container. Sp…
Suppose we have an application to do the drawings of different shapes. The following would…
Since Spring MVC is built in framework, there is an specific way to deal with it in some scenarios. Adding the static content like css,js, images is little bit tricky with spring mvc. Before adding these resources, there should be an specific folder structure to…
Spring mvc is a part of Spring Core framework. Here is how spring mvc behaves.
A separate dispatcher servlet is used for handling the requests and responses. Here are the technologies i have used.
First download the latest binaries from apache. Then extract it and copy to C:Program Files. Now set the environmental variables as follows.
Then edit the path variable as follows .
Apache Maven originated as an attempt to simplify the build process for the now defunct Apache Jakarta Alexandria project. Its formative years were then spent in the Apache Turbine project where it eventually…