일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- /etc/network/interfaces
- 데비안
- 알파회계
- 처음 만나는 AI수학 with Python
- 페이징
- 목록처리
- 코드로배우는스프링부트웹프로젝트
- baeldung
- 처음 만나는 AI 수학 with Python
- 이터레이터
- Kernighan의 C언어 프로그래밍
- network configuration
- 구멍가게코딩단
- 친절한SQL튜닝
- d
- 네트워크 설정
- 코드로배우는스프링웹프로젝트
- 리눅스
- iterator
- 서버설정
- 스프링 시큐리티
- ㅒ
- 자료구조와함께배우는알고리즘입문
- 자료구조와 함께 배우는 알고리즘 입문
- 선형대수
- 티스토리 쿠키 삭제
- resttemplate
- 자바편
- 스프링부트핵심가이드
- GIT
- Today
- Total
목록Projects/react-spring (2)
bright jazz music

1. 데이터 추가 테스트package com.test.mallapi;import com.test.mallapi.domain.Todo;import com.test.mallapi.repository.TodoRepository;import lombok.extern.log4j.Log4j2;import org.junit.jupiter.api.Test;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.test.context.SpringBootTest;import java.time.LocalDate;@SpringBootTest@Log4j2public class TodoRepositoryTests { ..

-- 1. DB설정2. 프로젝트에서 domain 패키지 만들고 거기에 Entity 생성하고 @Id와 @GeneratedValue(strategy = GenerationType.IDENTITY)로 설정package com.test.mallapi.domain;import jakarta.persistence.*;import lombok.*;import java.time.LocalDate;//엔티티를 사용해서 DB와 애플리케이션 사이의 데이터를 동기화 하고 관리@Entity@Table(name="tbl_todo")@Getter@ToString@Builder@AllArgsConstructor@NoArgsConstructorpublic class Todo { @Id // DB의 pk가 됨 // 고유한 ..