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..
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..
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..
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..