SpringMVC4 + Spring Data JPA + SpringSecurity configuration using JavaConfig

In this article we will see how to configure and integrate SpringMVC4, Spring Data JPA with Hibernate and SpringSecurity using JavaConfig. 1. First let’s configure all the necessary dependencies in pom.xml 4.0.0 com.sivalabs springmvc-datajpa-security-demo 1.0 war 1.7 4.11 1.7.5 1.0.13 4.0.0.RELEASE 1.4.1.RELEASE 3.2.0.RELEASE 4.2.6.Final 1.7.2 5.1.26 2.3.1 1.2.2 3.1 ${project.artifactId} org.apache.maven.plugins maven-compiler-plugin 3.1 ${java.version} ${java.version} org.slf4j jcl-over-slf4j ${slf4j.version} org.slf4j slf4j-api ${slf4j.version} ch.qos.logback logback-classic ${logback.version} org.springframework spring-context-support commons-logging commons-logging org.springframework spring-webmvc org.springframework spring-test org.springframework.data spring-data-jpa ${spring-data-jpa.version} org.hibernate hibernate-entitymanager ${hibernate.version} org.springframework.security spring-security-core ${spring-security.version} org.springframework.security spring-security-web ${spring-security.version} org.springframework.security spring-security-config ${spring-security.version} org.springframework.security spring-security-taglibs ${spring-security.version} org.aspectj aspectjweaver ${aspectj.version} org.aspectj aspectjrt ${aspectj.version} junit junit ${junit.version} test

Continue reading »