Getting started

In this tutorial, You will learn how to Build a RESTful Web Service using spring 4 MVC. @RestController accepts HTTP GET request and returns the XML response.
In this tutorial, You will learn how to Build a RESTful Web Service using spring 4 MVC. RestController accepts HTTP GET request and returns the JSON representation. So let's start from scratch with step by step guide.
In this tutorial, You will learn how to serve static resources such as IMAGES, JS and CSS files from specific locations using Spring 4 MVC.
In this tutorial, You will learn how to Upload Files using Spring 4 MVC application. This example will help you how to configure MultipartResolver using java config. To upload files I am using Apache commons fileupload API.
In this tutorial, You will learn how to connect to MongoDB database and perform the different CRUD operations using Spring 4 and MongoTemplate. We have used Java base configurations to load the MongoTemplate. Refer below steps to accessing data with MongoDB using Spring 4.
In this tutorial, You will learn how to access MongoDB database using Spring 4 MongoRepository. Configure MongoDbFactory, MongoTemplate using JavaConfig also learn how to define MongoRepository to create Query methods. In this example, I will demonstrate MongoDB CRUD operation.

Recently I am working on Spring 4 and mongoDB integration POC. After finishing every thing I am getting java.lang.NoSuchMethodError error. Below is the error details.

Caused by: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.findMergedAnnotation(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;

In this tutorial, you will learn how to download a file using Spring 4 MVC application. This example will help how to download different files like PDF, TEXT, ZIP from the server location.
In this tutorial, You will learn about Spring 4 MVC ContentNegotiatingViewResolver, Here we have defined multiple views for different content-types which will be identified by ContentNegotiatingViewResolver and return a response in HTML, JSON, PDF and in XML format.
In this tutorial, we will learn how to connect to the database and execute CRUD SQL queries using Spring 4 JdbcTemplate. Java base configuration is used to load the JdbcTemplate, here we are not using XML base configuration for JdbcTemplate.