Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Javascript
- Spring Controller return
- react jsx if
- springbatch chunk
- spring builder
- react
- react Quill
- spring security
- react react-router-dom v6
- javascrpit 기초
- javascript 기초
- JPA Insert
- spring
- step 테이블
- react Page
- Spring Entity
- Docker Windows 설치
- SpringBatch 스키마
- react forwardRef
- react link
- 텍스트가 많은 경우
- Spring DTO
- 코드 중복제거
- editor Quill
- react quill custom
- Spring CORS
- springbatch
- javascript 함수
- Spring JPA
- JPA Update\
Archives
- Today
- Total
목록Spring DTO (1)
천천히 알아보는 코딩공부
[spring] DTO, Entity 차이 및 전달 로직
Entity는 Controller, Client단에서 쓰이면 직접 쓰이면 좋은 설계가 아니라고 한다. Entity는 Service -> Repository -> DB 상태로만 사용하는 것 같다. Entity DB에 저장하기 위해 유저가 정의한 클래스 실제 DB테이블과 매칭 @Getter @NoArgsConstructor @Table(name="admin") @Entity public class Member { @Id @GeneratedValue(strategy= GenerationType.AUTO) private long id; private String name; private String password; private String email; } DTO 데이터 전송 객체 DB에서 데이터를 얻어 Se..
Java/SpringBoot
2022. 12. 1. 16:56