Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7e6f043

Browse files
2nd commit
1 parent b63a6ea commit 7e6f043

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

‎src/main/java/com/springboot2/security/demosecurity/config/MyCustomLoginSuccessHandler.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
import javax.servlet.http.HttpSession;
1010
import java.io.IOException;
1111

12-
/**
13-
* Created by Alem D.
14-
* Date: 04.03.2018
15-
*/
1612
@Deprecated
1713
public class MyCustomLoginSuccessHandler extends SavedRequestAwareAuthenticationSuccessHandler
1814
{

‎src/main/java/com/springboot2/security/demosecurity/config/SpringSecurityConfig.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
import com.springboot2.security.demosecurity.error.MyAccessDeniedHandler;
44
import org.springframework.beans.factory.annotation.Autowired;
5-
import org.springframework.context.annotation.Bean;
65
import org.springframework.context.annotation.Configuration;
76
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
87
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
98
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
10-
import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
119

1210
// http://docs.spring.io/spring-boot/docs/current/reference/html/howto-security.html
1311
// Switch off the Spring Boot security configuration
@@ -54,11 +52,11 @@ protected void configure(HttpSecurity http) throws Exception
5452
.exceptionHandling().accessDeniedHandler(accessDeniedHandler);
5553
}
5654

57-
@Bean
55+
/*@Bean
5856
public AuthenticationSuccessHandler successHandler()
5957
{
6058
return new MyCustomLoginSuccessHandler();
61-
}
59+
}*/
6260

6361
@Autowired
6462
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception

‎src/main/java/com/springboot2/security/demosecurity/old/MainController.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package com.springboot2.security.demosecurity.old;
22

3-
/**
4-
* Created by Alem D.
5-
* Date: 02.03.2018
6-
*/
73
//@Controller
84
public class MainController
95
{

‎src/main/java/com/springboot2/security/demosecurity/old/SecurityConfig.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package com.springboot2.security.demosecurity.old;
22

3-
/**
4-
* Created by Alem D.
5-
* Date: 02.03.2018
6-
*/
73
/*
84
public class SecurityConfig extends WebSecurityConfigurerAdapter
95
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /