
게시글 CRUD까지 구현했으니, 이제 댓글 CRUD도 구현해보겠다. 사실 댓글 로직은 게시글 로직과 거의 똑같다. Entity 설계 댓글 Create(생성), Read(읽기), Update(업데이트), Delete(삭제)를 위해 필요한 엔티티 Comment를 만들어주었다. Comment entity package com.example.MyFreshmanCommunity.entity; import com.example.MyFreshmanCommunity.dto.ArticleDto; import com.example.MyFreshmanCommunity.dto.CommentDto; import jakarta.persistence.*; import lombok.AllArgsConstructor; import l..

멤버 로직을 만들었으니, 이젠 게시글 CRUD를 구현해보겠다. Entity 설계 게시글 Create(생성), Read(읽기), Update(업데이트), Delete(삭제)를 위해 필요한 엔티티는 Article이다. Article entity package com.example.MyFreshmanCommunity.entity; import com.example.MyFreshmanCommunity.dto.ArticleDto; import com.example.MyFreshmanCommunity.repository.MajorRepository; import jakarta.persistence.*; import lombok.*; import org.hibernate.annotations.OnDelete; imp..

저번에 만들었던 회원가입, 로그인 로직에 이어 이번에는 로그아웃, 회원탈퇴 기능을 구현해보았다. SecurityConfig import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.a..

프로젝트 소개 이번에 새내기를 위한 커뮤니티를 만드는 프로젝트를 진행하게 됐다. 스프링을 배우고 난 후 처음으로 하는 프로젝트라 효율적인 DB 및 JPA 사용 등 성능에 초점을 맞추긴 어렵겠지만, 그래도 최대한 열심히 이것저것 사용하며 배워보려고 한다! DB 설계 일단 db를 설계해두면 나중에 구현하기 더 쉬울 것 같아서 ERDCloud를 사용하여 설계해주었다. Entity 설계 일단 회원가입, 로그인 등의 멤버 로직을 만들기 위해 필요한 엔티티는 Member와 Major이다. package teamFive.freshmanCommunity.entity; import jakarta.persistence.*; import lombok.AllArgsConstructor; import lombok.Getter;..
- Total
- Today
- Yesterday
- 지연로딩
- JPA
- 웹MVC
- 인텔리제이
- 프론트엔드
- 스프링
- 다이나믹 프로그래밍
- 커뮤니티
- 스프링부트
- 북마크
- SQL
- 자바 스프링
- 파이썬
- SQLD
- elasticsearch
- 웹 MVC
- 비영속
- 자바
- 영속
- SQL 레벨업
- 백준
- DP
- 스프링 북마크
- 로그아웃
- 백준 파이썬
- EnumType.ORDINAL
- 로깅
- 회원탈퇴
- 스프링 커뮤니티
- 준영속
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |