spring (29) 썸네일형 리스트형 slf4j takeknowledge.tistory.com/59?category=790021 The IoC Container 1. The IoC Container This chapter covers Spring’s Inversion of Control (IoC) container. 1.1. Introduction to the Spring IoC Container and Beans This chapter covers the Spring Framework implementation of the Inversion of Control (IoC) principle. IoC is also known as dependency injection (DI). It is a process whereby objects define their dependencies (that is, the other objects they work with) onl.. jsp와 .tld dololak.tistory.com/750 Package org.springframework.web.context Class ContextLoader Class RequestContextHolder [스프링 시큐리티] 로그인과 로그아웃 처리(3) 1. 커스텀 로그인 페이지 로그인페이지를 다시 제작해서 사용해야 한다. 이를 이용하는 방식은 접근 제한 페이지와 유사하게 직접 특정한 URI를 지정할 수 있다. login-page 속성의 URI는 반드시 GET 방식으로 접근하는 URI를 지정한다. com.grindman.web.controller 패키지의 CommonController에 '/customLogin'에 해당하는 메소드를 추가하자. @GetMapping("/customLogin") public void loginInput(String error, String logout, Model model) { System.out.println("error : " + error); System.out.println("logout : " + logout);.. [스프링 시큐리티] 로그인과 로그아웃 처리(2) 1. 여러 권한을 가지는 사용자 설정 정상적으로 로그인이 처리되는 것을 확인했다면 '/sample/admin'을 처리하도록 한다. '/sample/admin'은 'ROLE_ADMIN'이라는 권한을 가진 사용자가 접근할 수 있도록 지정하는데 사용자는 'ROLE_ADMIN'이라는 권한을 가진 사용자가 접근할 수 있도록 지정하는데 사용자는 'ROLE_ADMIN'과 'ROLE_MEMBER'라는 2개의 권한을 가지도록 지정한다. 새롭게 추가된 은 '/sample/admin'에 대한 접근을 설정한다. 에 추가된 admin 사용자는 'ROLE_MEMBER'와 'ROLE_ADMIN'이라는 2개의 권한을 가지도록 설정한다. Admin 계정을 가진 사용자는 '/sample/member'와 '/sample/admin'모두에.. 이전 1 2 3 4 다음