개발자가 되기까지 (2023.08.16~2024.04.15)/[Spring] Basic Web2024. 1. 31. 02:03[Spring] 27. 게시물/댓글 - 작성자가 일치하면 수정/삭제

register.jsp 글쓰기 제목 작성자 내용 파일 업로드 등록 취소 detail.jsp No. 제목 작성자 작성일 ${bvo.readCount } 수정일 내용 수정 삭제 목록 ${authEmail } 등록 등록 Writer 댓글등록일 content 댓글 더보기 ${authEmail } 등록 닫기 boardComment.js console.log('boardComment.js in~!!'); console.log(bnoVal); console.log(userEmail); document.getElementById('cmtPostBtn').addEventListener('click',()=>{ const cmtText = document.getElementById('cmtText'); if(cmtText..

개발자가 되기까지 (2023.08.16~2024.04.15)/[Spring] Basic Web2024. 1. 30. 22:30[Spring] 26. 로그인 / 로그아웃

CustomAuthMemberService.java package com.basicWeb.www.security; import javax.inject.Inject; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UsernameNotFoundException; import com.basicWeb.www.repository.MemberDAO; import lombok.RequiredArgsConstructor; im..

개발자가 되기까지 (2023.08.16~2024.04.15)/[Spring] Basic Web2024. 1. 25. 03:11[Spring] 25. 회원가입

register.jsp 회원가입 E-mail Password Nickname SignUp MemberController.java package com.basicWeb.www.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import com.basicWeb.www.security.MemberVO; import com.bas..

개발자가 되기까지 (2023.08.16~2024.04.15)/[Spring] Basic Web2024. 1. 23. 23:39[Spring] 24. 회원 기초 MVC 구성

MemberController.java package com.basicWeb.www.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import com.basicWeb.www.service.MemberService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @Slf4j @Controller @RequiredArgsConstructor @Re..

개발자가 되기까지 (2023.08.16~2024.04.15)/[Spring] Basic Web2024. 1. 23. 01:45[Spring] 23. Security 설정 (customAuthMemberServic 제외)

sql CREATE TABLE member ( email VARCHAR(100) NOT NULL, pwd VARCHAR(1000) NOT NULL, nick_name VARCHAR(100) NOT NULL, reg_at DATETIME DEFAULT now(), last_login DATETIME DEFAULT NULL, PRIMARY KEY(email) ); CREATE TABLE auth_member( email VARCHAR(100) NOT NULL, auth VARCHAR(50) NOT NULL ); ALTER TABLE auth_member ADD CONSTRAINT fk_auth FOREIGN KEY (email) REFERENCES member(email); pom.xml org.spring..

728x90
반응형
image