Home » Spring MVC

Tag Archives: Spring MVC

Spring Boot and OAuth2 Tutorial

In this tutorial, we will show how to integrate OAuth2 with Spring Security in a Spring Boot application. 1. Introduction Many web applications use some mechanism for identifying a user, if for nothing more than to provide a personalized experience. Also, an authorization check may be required to determine if the user has the necessary access level to use the ...

Read More »

Spring Boot MockMVC Tutorial

In this article, we provide a tutorial about Spring Boot MockMVC. 1. Introduction As a software developer, you need to validate that your code is working correctly. You accomplish this by testing. There are different types of tests: Unit tests target a specific section of code, such as a methodIntegration tests verify that the interactions between your code and other ...

Read More »

Spring Form Validation Example

In this example, we will show how to implement server-side form validation in a Spring MVC application. 1. Introduction Form validation is a basic requirement for web applications that accept data as input. For example, you may want to ensure that an email address or credit card number sent in a request is valid before processing the data. There are ...

Read More »

Spring Boot Bean Validation Example

In this example, we will demonstrate how to use Bean Validation in a Spring Boot REST application. 1. Introduction Data validation is a basic requirement for any application, especially for web applications that accept data as input. For example, you may want to ensure that an email address or credit card number sent in a request is valid. Before the ...

Read More »

Spring MVC Functional Programming Example

1. Spring MVC Functional Programming – Introduction In this post, we feature a comprehensive article on Spring MVC Functional Programming. With the advent of Java 8, there were drastic changes in the way Java programming was done. Java 8 brought into picture functional interfaces. Functional interfaces are Java interfaces containing one and only one abstract method. The functional interfaces became ...

Read More »

Spring MVC @PathVariable dot(.) get truncated Example

In this post, we feature a comprehensive article on Spring MVC @PathVariable dot(.) get truncated. In spring, the @PathVariable annotation is used to bind the uri template variables in the spring mvc framework. But there is one issue i.e. if the passed parameter has a value with a dot in it (for e.g. xxx.xx) then the portion after the last ...

Read More »

Spring MVC and Angular 6 Example

Welcome readers, in this tutorial, we will show the Angular 6 Http Client module and Spring MVC example to fetch the model data. Here, we are using Angular 6 as a front-end technology to make a request and receive the response. 1. Introduction Refer below diagram to understand the spring mvc and angular 6 applications. The two different applications interact ...

Read More »

Spring Security via Database Authentication Tutorial

Welcome readers, in spring, the security module is considered important. It enables the developers to integrate the security features in a managed way. In this tutorial, we will explore how to design a custom login form and perform the user’s authentication using a database in the spring security.                 Table Of Contents 1. ...

Read More »

Spring Security Custom Form Login Example

Welcome readers, in spring, the security module is considered important. It enables the developers to integrate the security features in a managed way. In this tutorial, we will show how to design a custom login form to implement the security in a spring mvc framework. 1. Introduction Model-View-Controller (MVC) is a well-known design pattern for designing the GUI based applications. ...

Read More »

Selenium Web Application Testing Example

1. Introduction In this post, we feature a comprehensive example on Selenium web application testing. A web application is a client-server computer program which the client runs in a web browser. Spring Web model-view-controller (MVC) framework provides an easier way to develop a web application. Spring boot provides auto configuration to simplify the configuration steps. Selenium is a set of software tools ...

Read More »