로그인

    [Springboot] 블로그 만들기 (24)_스프링 시큐리티(5)_로그인

    loginForm.jsp UserName Password 로그인 SecurityConfig.java // 빈 등록 : 스프링 컨테이너에서 객체를 관리할 수 있게 하는 것 @Configuration // 빈등록 (IoC관리) // Controller 에 들어가기전에 여기를 탄다 public class SecurityConfig { @Bean // 사용자의 자격증명을 검증하는 Bean 생성 public AuthenticationManager authenticationManager(AuthenticationConfiguration authenticationConfiguration) throws Exception { return authenticationConfiguration.getAuthenticationM..

    [Springboot] 블로그 만들기 (19)_로그인(전통적인 방식)

    전통적인 방식의 로그인 구현하기 loginForm.jsp UserName Password Remember me 로그인 userController.java @GetMapping("/user/loginForm") public String loginForm() { // 로그인 폼 띄우는 메서드 return "user/loginForm"; } userApiController.java // 전통적인 방식의 로그인 방법 @PostMapping("/api/user/login") public ResponseDto login(@RequestBody User user, HttpSession session) { System.out.println("UserApiController : login 호출됨"); User princ..

    [Springboot] 블로그 만들기 (16)_로그인, 회원가입 화면

    header 와 footer는 메인페이지뿐만 아니라 다른 페이지에서도 동일하게 나와야 하기 때문에 구성을 변경한다. index.jsp (기존) LWJ 로그인 회원가입 제목 적는 부분 상세보기 제목 적는 부분 상세보기 제목 적는 부분 상세보기 Create by LWJ 📞010-1234-5678 🏴경기도 광명시 어딘가 index.jsp에 있는 header와 footer 를 분리하자. header.jsp ,footer.jsp 생성 header.jsp LWJ 로그인 회원가입 footer.jsp Create by LWJ 📞010-1234-5678 🏴경기도 광명시 어딘가 index.jsp 제목 적는 부분 상세보기 제목 적는 부분 상세보기 제목 적는 부분 상세보기 테스트 회원가입, 로그인을 위한 Controller ..