실전! 스프링 데이터 JPA

Ch01. 프로젝트 환경 설정 - 라이브러리 살펴보기

webmaster 2021. 12. 24. 10:00
728x90

라이브러리 살펴보기 명령어 : ./gradlew dependencies --configuration compileClasspath

임포트한 라이브러리

  • 프로젝트 폴더 위치에서 해당 명령어를 실행시키면 의존된 라이브러리를 확인할 수 있다.

Spring 라이브러리

  •  spring-boot-starter-web
    • spring-boot-starter-tomcat: 톰캣 (웹서버)
    • spring-webmvc: 스프링 웹 MVC
  • spring-boot-starter-data-jpa
    • spring-boot-starter-aop
    • spring-boot-starter-jdbc
      • HikariCP 커넥션 풀 (부트 2.0 기본)
    • hibernate + JPA: 하이버네이트 + JPA
    • spring-data-jpa: 스프링 데이터
  • JPA spring-boot-starter(공통): 스프링 부트 + 스프링 코어 + 로깅
    • spring-boot
      • spring-core
    • spring-boot-starter-logging
      • logback, slf4j

테스트 라이브러리

  • spring-boot-starter-test
    • junit: 테스트 프레임워크, 스프링 부트 2.2부터 junit5( jupiter ) 사용
      • 과거 버전은 vintage
    • mockito: 목 라이브러리
    • assertj: 테스트 코드를 좀 더 편하게 작성하게 도와주는 라이브러리

https://joel-costigliola.github.io/assertj/index.html

 

AssertJ / Fluent assertions for java

AssertJ Fluent assertions for java

joel-costigliola.github.io

 

    • spring-test: 스프링 통합 테스트 지원

 

728x90