Spring Security with Hibernate example

Spring Security with Hibernate example

This article contains spring security with hibernate example with detail explanation and source code. Technology: Spring-MVC Spring Security Hibernate MySQL Maven Intellij Project Structure Dependency: <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd”>…

Read More
Spring Security csrf example

Spring Security csrf example

This article contains Spring Security CSRF Example for authentication using Spring Security. This article help you to solve Cross Site Request Forgery (CSRF) problem using spring security. As of Spring Security 4.0, CSRF…

Read More
Spring Security Example

Spring Security Example

Here is Spring Security Example using Java Configuration. Spring Security provides comprehensive security services for Java EE-based enterprise software applications. There is a particular emphasis on supporting projects built using…

Read More

JSTL forEach Loop Example

Maven Dependency: <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> Controller: @RequestMapping(value = “jstlForEach”, method = RequestMethod.GET) public String jstlForEach(ModelMap model) { List<Employee> employees = new ArrayList<>(); employees.add(new Employee(1, “Subhash Lamba”)); employees.add(new Employee(2,…

Read More
Spring MVC download file example

Spring MVC Download File

This is example of download file from server without steaming. Example of Spring-MVC + File Download Technology Used: String 4.3.0 Maven 2.3.2 Tomcat 7 Java 8 IntelljIDEA 14 Project structure:…

Read More