Spring Boot 썸네일형 리스트형 Chapter2 - DB 연결(JPA) 1. build.gradle 수정 아래와 같이 의존성을 추가합니다. dependencies { annotationProcessor( "org.projectlombok:lombok", ) implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'mysql:mysql-connector-java:5.1.49' implementation 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter.. 더보기 Chapter1 - 프로젝트 생성 1. Spring 프로젝트 생성 Spring Initializer를 활용하면, 쉽게 Spring 프로젝트를 생성 할 수 있습니다. 목적과 환경에 맞춰 아래와 같이 설정 후 프로젝트를 생성하였습니다. 2. Sample API FilmController.java를 아래와 같이 작성하였습니다. package com.example.filmservice; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springf.. 더보기