Spring 148

[Springboot] 이메일로 임시 비밀번호 전송 개발하기 (1) build.gradle, application.yml, dto

🗂️ src/main/java   L  📁 apiPayload   L  📁 config   L  📂 controller        L UserController   L  📂 domain        L 📁 common        L 📁 enums        L User   L  📂 dto        L 📂 request              L NewPasswordDto        L 📁 response   L  📁 jwt   L  📂 repository        L UserRepository   L  📂 service        L UserService        L UserServiceImpl 🗂️ src/main/resources  L application..

[Springboot] 이메일로 임시 비밀번호 전송 설계하기

📂 /user  L 회원 가입  L 회원 탈퇴  L 로그인   L 로그아웃  L 비밀번호 재설정 (로그인 전) ⬅️⬅️⬅️   L 비밀번호 재설정 (로그인 후)  🔧 디자인  🔧 필요한 데이터  L email 🔧 HTTP Method  L POST🔧 API Path  L /user/new-pw  🔧 API Request  L Body{ "email" : string}  📜 스프링부트에서 비밀번호 재설정 이메일 보내기https://lucas-owner.tistory.com/16#google_vignette [springBoot] spring Boot 이메일 발송(Google SMTP)Spring Boot 이메일 발송하기! 웹 서비스를 기획하고 구성하다보면 이메일 관련한 작업을 해야 할 경우가 ..

[Springboot/JWT] 로그아웃 설계하기

📂 /user  L 회원 가입  L 회원 탈퇴  L 로그인   L 로그아웃 ⬅️⬅️⬅️   L 비밀번호 재설정 (로그인 전)  L 비밀번호 재설정 (로그인 후)  🔧 현재 로그인 동작 구조 🔧    ➡️ 아직 refresh token 없이 access token 만으로 로그인 기능을 관리하므로 일단 클라이언트에 저장되어 있는 access token 을 삭제하는 방식으로 구현하기로 하였다 !

[Springboot/SpringSecurity/JWT] 로그인 개발하기 (3) controller, repository, service, dto

📂 apiPayload📂 config  L SecurityConfig📂 controller  L UserController📂 domain  L 📂 common  L 📂 enums  L User📂 dto  L 📂 request        L LoginDto  L 📂 response        L LoginResponseDto📂 jwt  L JwtFilter  L JwtUtil📂 repository  L UserRepository📂 service  L UserService  L UserServiceImpl🐘 build.gradle  로그인 기능 구현 ① LoginDto : 프론트엔드 서버에서 들어오는 데이터 정보@Getter@AllArgsConstructor@NoArgsConstr..

[Springboot/SpringSecurity/JWT] 로그인 개발하기 (2) jwt

📂 apiPayload📂 config  L SecurityConfig📂 controller  L UserController📂 domain  L 📂 common  L 📂 enums  L User📂 dto  L 📂 request        L LoginDto  L 📂 response        L LoginResponseDto📂 jwt  L JwtFilter  L JwtUtil📂 repository  L UserRepository📂 service  L UserService  L UserServiceImpl🐘 build.gradle  JWT (Json Web Token) 을 처리하기 위한 구현 ① JwtFilter : HTTP 요청을 가로채 JWT 토큰을 검증하고, 사용자의 정보를 ..

[Springboot/SpringSecurity/JWT] 로그인 개발하기 (1) build.gradle, config

📂 apiPayload📂 config   L SecurityConfig📂 controller   L UserController📂 domain  L 📂 common  L 📂 enums  L User📂 dto  L 📂 request        L LoginDto  L 📂 response        L LoginResponseDto📂 jwt   L JwtFilter   L JwtUtil📂 repository   L UserRepository📂 service   L UserService   L UserServiceImpl🐘 build.gradle  Spring Security, JWT 사용을 위한 준비 ① build.gradle : Spring Security + Jwt 의존성 추가...

[Springboot] 로그인 설계하기

📂 /user  L 회원 가입  L 회원 탈퇴  L 로그인 ⬅️⬅️⬅️   L 로그아웃  L 비밀번호 재설정 (로그인 전)  L 비밀번호 재설정 (로그인 후)   🔧 디자인    🔧 필요한 데이터   L email   L password 🔧 HTTP Method  L POST🔧 API Path  L /user/login 🔧 API Request  L Body{ "email" : string, "password" : string}

[Springboot/JWT] 회원 탈퇴 개발하기

📂 apiPayload📂 config📂 controller  L UserController📂 domain  L 📂 common  L 📂 enums  L User📂 dto  L 📂 request  L 📂 response📂 jwt  L JwtFilter   L JwtUtil📂 repository  L UserRepository📂 service  L UserService  L UserServiceImpl  회원 탈퇴 로직 구현 ① UserServiceImpl@Service@Transactional@RequiredArgsConstructorpublic class UserServiceImpl implements UserService { private final UserRepository..

[Springboot] 회원 탈퇴 설계하기

📂 /user  L 회원 가입  L 회원 탈퇴 ⬅️ ⬅️ ⬅️   L 로그인  L 로그아웃  L 비밀번호 재설정 (로그인 전)  L 비밀번호 재설정 (로그인 후) 🔧 HTTP Method  L DELETE 🔧 API Path  L /user/signout 🔧 Header“Authorization” : “Bearer {token}”   L  jwt 토큰 값을 받아 해당 사용자가 누구인지 판단한다

[Springboot] 회원 가입 개발하기 (2) controller, domain, repository, service

📂 apiPayload📂 config📂 controller  L UserController📂 domain  L 📂 common      L BaseEntity  L 📂 enums      L FoodCategoryName      L UserGender      L UserRole  L User📂 dto  L 📂 request      L SignUpDto  L 📂 response📂 jwt📂 repository  L UserRepository📂 service  L UserService  L UserServiceImpl  회원 가입 로직 필수 구현 코드 ① User : 사용자 엔티티@Entity@Getter@Builder@NoArgsConstructor(access = AccessLe..

728x90