MVC

Spring MVC CRUD using MongoDB Tutorial

Hello readers, in this tutorial we will create a simple Spring MVC application that uses a document-oriented NoSQL database for its database layer. For this tutorial, we’ll perform the basic Create, Read, Update, and Delete database operations for managing the list of users. Table Of Contents 1. Introduction 1.1 What is Spring framework? 1.2 What is MongoDB? 2. Spring MVC ...

Read More »

Spring MVC File Download Example

Hello readers. Spring framework provides an out of box support for the file download functionality from the server to a local machine. In this tutorial, we will show you how to implement the file download functionality with the Spring Mvc framework. To handle the file download capability in a web application, we will use the HttpServletResponse to directly write a ...

Read More »

Spring MVC using Log4j Example

Log4j is a popular and widely-used logging framework for the Java development. It’s pretty easy to setup and use the Log4j mechanism in a Spring Mvc application. In this tutorial, I will show you how to implement the logging functionality with the Spring Mvc framework. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity ...

Read More »

Sending Email With Spring MVC Example

Spring provides the first-class support for sending emails. It comes with the utility libraries which abstracts away the complexities of the underlying mailing system and provides a simple API to use in the application for sending emails. In this tutorial, we will show how to write a simple Web application for sending an email based on the Spring MVC framework ...

Read More »

Spring MVC RequestMapping Example

Spring MVC is one of the most important modules of the Spring framework. In this article, we are going to discuss one of the main annotation in Spring MVC i.e. @RequestMapping which is used to map a web request to Spring Controller’s handler methods. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of ...

Read More »

Spring MVC Redirect Example

Spring MVC is one of the most important modules of the Spring framework. In this example, we will show how to write a simple Spring based web application which makes use of redirect to transfer an HTTP request to another page. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application ...

Read More »

Spring MVC Architecture Overview Example

In this example, we will build a Hello World web application using the Spring MVC framework. Spring MVC is one of the most important modules of the Spring framework. It builds on the powerful Spring Inversion of Control (IoC) container and makes an extensive use of the container features to simplify its configuration. 1. Introduction 1.1 Spring Framework Spring is ...

Read More »

Spring MVC Hibernate Tutorial

1. Introduction To develop web applications these days, we use Modern View Controller architecture. Spring provides MVC framework with ready components that can be used to develop flexible and loosely coupled web applications. MVC framework provides separation between input logic, business logic and UI logic. Model encapsulates the application data View is responsible for rendering the model data Controller is ...

Read More »

Angularjs and Spring Integration Tutorial

HTML5, rich browser-based features, and the single page application are extremely valuable tools for modern development. Every application requires a server side (backend) framework besides the client side (frontend) framework. The server side can serve content, render dynamic HTML, authenticate users, secure access to protect resources or interact with Javascript in the browser through HTTP and JSON. Spring has been always one of the ...

Read More »

Spring MVC Application with Spring Security Example

In one of our past examples, we learned to create a simple Spring MVC web-applciation. In this example we will demonstrate how we can implement Spring-Security to secure our web-application. We shall discuss and demonstrate both Authentication as well as the Authorization aspect of an application’s security. 1. Introduction to Spring Security Security of a web-application revolves around three major ...

Read More »