In this Spring MVC CRUD Example, we will be building a simple web-based Spring MVC Application (Employee management) which has the ability to perform CRUD Operations using Spring JdbcTemplate. Our Employee management application will have abilities to create a new employee, update the existing employee, get a particular employee/ all employee and finally delete the existing employee. [Read more…]
Previously we have seen how to implement Spring Security in a Hello World program using XML configuration. In this Spring Security Annotation Configuration Example, we will be using the same example but instead of XML configuration, we will be configuring it through annotation.
In this tutorial, we will learn how to integrate AngularJS with Spring MVC application. We will be building a REST Web service using Spring MVC Controller (@RESTController), here AngularJS will request the data through the HTTP protocol and the RESTFul Web Service will return the JSON format response. Let’s now dig into the code. [Read more…]
In the previous Spring Security Hello World Example, we have built a simple Spring MVC Hello World application and took the advantage of Spring Security by using the default login form provided. In this tutorial we will go a bit further and build our own login for our Spring Security Custom Login Form application.
In this Spring Security Tutorial, we will build a Simple Spring MVC Hello World application integrated with Spring Security features. In this application, we will be dealing with two major security areas Authentication and Authorization.
- Authentication – It is nothing but validating whether the user is a valid user or not.
- Authorization – Deciding whether the particular user is allowed to perform a certain activity in the application or not.
In this Spring RESTful Web Services example, we will learn how to create a RESTful Web Services directly through Spring Framework rather than creating it through REST implementation such as Jersey. In this article, we will create a REST service which returns XML representation of the Object. [Read more…]
When you happen to work with a Spring MVC Framework based Web application. Then java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener is a common problem which will be occurring during deployment. Spring MVC throws this exception when it is not able to find the “org.springframework.web.context.ContextLoaderListener” class which loads up the all the Spring MVC configuration files and other configuration files which is declared in the web.xml.
<context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/SpringMVC-servlet.xml, /WEB-INF/SpringSecurity.xml </param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>
This exception will mostly happen when you start the server [Read more…]