diff --git a/spring-security-login-error-handling/pom.xml b/spring-security-login-error-handling/pom.xml index f806df0391..81c3c4f785 100644 --- a/spring-security-login-error-handling/pom.xml +++ b/spring-security-login-error-handling/pom.xml @@ -7,19 +7,15 @@ spring-security-login-error-handling war 1.0.0-BUILD-SNAPSHOT - - 1.7 - 3.1.1.RELEASE - 3.2.4.RELEASE - 1.6.10 - 1.6.6 - + org.springframework.boot spring-boot-starter-parent 1.1.1.RELEASE + + org.springframework.boot @@ -39,22 +35,18 @@ org.springframework spring-core - org.springframework spring-webmvc - org.springframework spring-jdbc - org.springframework spring-beans - org.springframework @@ -81,21 +73,24 @@ spring-security-config runtime + org.aspectj aspectjrt + javax.validation - validation-api - 1.1.0.Final + validation-api + 1.1.0.Final org.hibernate hibernate-validator + org.slf4j @@ -160,11 +155,13 @@ jstl + org.springframework.security spring-security-taglibs + junit @@ -173,6 +170,7 @@ + SpringSecurityLogin @@ -181,10 +179,10 @@ true + maven-eclipse-plugin - org.springframework.ide.eclipse.core.springnature @@ -196,10 +194,10 @@ true + org.apache.maven.plugins maven-compiler-plugin - 1.7 1.7 @@ -208,19 +206,28 @@ true + org.apache.maven.plugins maven-war-plugin - + org.codehaus.mojo exec-maven-plugin - org.test.int1.Main + + + 1.7 + 3.1.1.RELEASE + 3.2.4.RELEASE + 1.6.10 + 1.6.6 + + diff --git a/spring-security-login-error-handling/src/main/java/org/baeldung/security/MySimpleUrlAuthenticationSuccessHandler.java b/spring-security-login-error-handling/src/main/java/org/baeldung/security/MySimpleUrlAuthenticationSuccessHandler.java index 88862d603e..825eaba71e 100644 --- a/spring-security-login-error-handling/src/main/java/org/baeldung/security/MySimpleUrlAuthenticationSuccessHandler.java +++ b/spring-security-login-error-handling/src/main/java/org/baeldung/security/MySimpleUrlAuthenticationSuccessHandler.java @@ -7,8 +7,8 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.security.core.Authentication; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.web.DefaultRedirectStrategy; @@ -17,7 +17,7 @@ import org.springframework.security.web.WebAttributes; import org.springframework.security.web.authentication.AuthenticationSuccessHandler; public class MySimpleUrlAuthenticationSuccessHandler implements AuthenticationSuccessHandler { - protected Log logger = LogFactory.getLog(this.getClass()); + private final Logger logger = LoggerFactory.getLogger(getClass()); private RedirectStrategy redirectStrategy = new DefaultRedirectStrategy(); diff --git a/spring-security-login-error-handling/src/main/java/org/baeldung/spring/MvcConfig.java b/spring-security-login-error-handling/src/main/java/org/baeldung/spring/MvcConfig.java index 3cecdd9588..2d83d6a5d9 100644 --- a/spring-security-login-error-handling/src/main/java/org/baeldung/spring/MvcConfig.java +++ b/spring-security-login-error-handling/src/main/java/org/baeldung/spring/MvcConfig.java @@ -74,4 +74,5 @@ public class MvcConfig extends WebMvcConfigurerAdapter { messageSource.setCacheSeconds(0); return messageSource; } + } \ No newline at end of file diff --git a/spring-security-login-error-handling/src/main/java/org/baeldung/spring/SecSecurityConfig.java b/spring-security-login-error-handling/src/main/java/org/baeldung/spring/SecSecurityConfig.java index 99efdf4237..3e793a33f6 100644 --- a/spring-security-login-error-handling/src/main/java/org/baeldung/spring/SecSecurityConfig.java +++ b/spring-security-login-error-handling/src/main/java/org/baeldung/spring/SecSecurityConfig.java @@ -10,4 +10,5 @@ public class SecSecurityConfig { public SecSecurityConfig() { super(); } + } diff --git a/spring-security-login-error-handling/src/test/java/.springBeans b/spring-security-login-error-handling/src/test/java/.springBeans deleted file mode 100644 index 8096aa036b..0000000000 --- a/spring-security-login-error-handling/src/test/java/.springBeans +++ /dev/null @@ -1,15 +0,0 @@ - - - 1 - - - - - - - - - - - - diff --git a/spring-security-login-error-handling/src/test/java/pom.xml b/spring-security-login-error-handling/src/test/java/pom.xml deleted file mode 100644 index 5ff5926f60..0000000000 --- a/spring-security-login-error-handling/src/test/java/pom.xml +++ /dev/null @@ -1,225 +0,0 @@ - - - 4.0.0 - com.egm - SpringSecurityLogin - SpringSecurityLogin - war - 1.0.0-BUILD-SNAPSHOT - - 1.7 - 3.1.1.RELEASE - 3.2.4.RELEASE - 1.6.10 - 1.6.6 - - - org.springframework.boot - spring-boot-starter-parent - 1.1.1.RELEASE - - - - - org.springframework.boot - spring-boot-starter-web - - - org.springframework - spring-context - - - - commons-logging - commons-logging - - - - - org.springframework - spring-core - - - - org.springframework - spring-webmvc - - - - org.springframework - spring-jdbc - - - - org.springframework - spring-beans - - - - org.springframework - spring-aop - - - org.springframework - spring-tx - - - org.springframework - spring-expression - - - org.springframework - spring-web - - - org.springframework - spring-webmvc - - - org.springframework.security - spring-security-config - runtime - - - - org.aspectj - aspectjrt - - - - javax.validation - validation-api - 1.1.0.Final - - - org.hibernate - hibernate-validator - - - - org.slf4j - slf4j-api - - - org.slf4j - jcl-over-slf4j - runtime - - - org.slf4j - slf4j-log4j12 - runtime - - - log4j - log4j - - - javax.mail - mail - - - javax.jms - jms - - - com.sun.jdmk - jmxtools - - - com.sun.jmx - jmxri - - - runtime - - - - - javax.inject - javax.inject - 1 - - - - - javax.servlet - servlet-api - 2.5 - provided - - - javax.servlet.jsp - jsp-api - 2.1 - provided - - - javax.servlet - jstl - - - - org.springframework.security - spring-security-taglibs - - - - junit - junit - test - - - - - SpringSecurityLogin - - - src/main/resources - true - - - - - maven-eclipse-plugin - - - - org.springframework.ide.eclipse.core.springnature - - - org.springframework.ide.eclipse.core.springbuilder - - true - true - - - - org.apache.maven.plugins - maven-compiler-plugin - - - 1.7 - 1.7 - -Xlint:all - true - true - - - - org.apache.maven.plugins - maven-war-plugin - - - - org.codehaus.mojo - exec-maven-plugin - - - org.test.int1.Main - - - - -