프로젝트 생성
- Spring boot
- 사용 기능(라이브러리); web, jpa, h2, lombk
- SpringBootVersion: 2.2.1(2.3.1도 문제 없음)
- groupId: study
- artifactId: data-jpa
Gradle config code
기본 동작 확인
- 기본 테스트 케이스 실행
- 스프링 부트 메인 실행 후 에러페이지로 동작 확인 (
http://localhost:8080
)
- 테스트 컨트롤러 생성 후 Spring web 동작 확인 (
[<http://localhost:8080/hello>](<http://localhost:8080/hello>)
)
H2
데이터베이스 설치
스프링 데이터 JPA와 DB설정, 동작 확인
Application.yml
작성