백엔드/JPA

    [ JPA ] 1. Repository interface 메소드

    1. 사전 준비 -프로젝트 구성 -build.gradle dependencies{ implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-web' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.h2database:h2' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' } 1. data.sql을 통해 기초 데이터 생..