환경 설정하기
Environment Setup
- SpringBoot를 사용해서 h2데이터베이스와 관련된 테스트를 진행 해 보려고 한다
- 스프링부트에
application.yml에 h2 세팅만 해주어도 바로 데이터베이스가 연결되어서 테스트용도로 편하다
- I'm going to run tests related to the H2 database using SpringBoot
- Just by setting up H2 in
application.yml in Spring Boot, the database connects immediately, which is convenient for testing purposes
SpringBoot Starter
SpringBoot Starter
- SpringBoot Starter로 실행해도 되고, Maven Repository 페이지에서 관련 Dependency를 설치해도 된다
- Gradle 프로젝트로 실행
- SpringBoot JPA
- H2 Database
- JUnit
- lombok
- commons-lang3
- You can run it with SpringBoot Starter, or install the related dependencies from the Maven Repository page
- Run as Gradle project
- SpringBoot JPA
- H2 Database
- JUnit
- lombok
- commons-lang3