| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 |
- 가변인자
- 상속
- 전체
- 로또
- Full text
- 자바
- IBatis procedure
- while
- 전자정부
- 자바 야구게임
- 형변환
- Validations
- 업캐스팅
- 야구게임
- 전체텍스트
- 스프링
- 이클립스
- angular2
- 단축키
- 다형성
- jquery
- 추상클래스
- Login with OAuth Authentication
- 페이징
- full text indexing
- 다운캐스팅
- 25가지 효율적인 sql작성법
- Random
- 상속예제
- Today
- Total
목록2017/02/14 (2)
nalaolla
In this article, we will show you three ways to get the current logged in username in Spring Security.1. SecurityContextHolder + Authentication.getName()import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework..
개발환경 스프링 시큐리티(Spring Security)는 스프링 서브 프로젝트 중 하나로 스프링 기반의 어플리케이션을 보호하기 위한 필수적인 프레임워크이다. 스프링을 사용하면서 자체적으로 세션을 이용한 인증방식을 구현한다면 바보같은 짓일 것이다. 스프링 시큐리티는 보안을 체계적으로 관리하며 개발한 스프링 어플리케이션들과 유연하게 연결된다. 그리고 오랜기간 다양한 피드백으로 개발되어 신뢰도가 높을 것이다. 스프링에 최적화된 스프링 시큐리티 보다 안정적인 프레임워크는 아마 없을 것이다. 무엇보다 스프링에서는 스프링 시큐리티를 표준으로 정의하고 있다. 스프링 시큐리티의 기본 예제를 먼저 알아보도록하겠다. 실무에서 사용할 수 없겠지만 스프링 시큐리트가 어떻게 구현되는 지 알 수 있는 예제이다. 프로젝트를 생성하..