[Spring] 스프링 라이브러리 살펴보기

Haeun Noh·2023년 8월 1일
1

TweeksStudy:1 (Spring)

목록 보기
2/13
post-thumbnail

0731


Gradle은 의존관계가 있는 라이브러리를 함께 다운로드한다.

이것이 import한 라이브러리보다 훨씬 많은 라이브러리가 있는 이유입니다.



☘️1. 스프링 부트 라이브러리

  • spring-boot-starter-web : 스프링부트와 관련된 라이브러리
    • spring-boot-starter-tomcat : 톰캣 (웹서버)
    • spring-webmvc : 스프링 웹 MVC
  • spring-boot-starter-thymeleaf : 타임리프 템플릿 엔진 (View)
  • spring-boot-starter(공통) : 스프링 부트 + 스프링 코어 + 로깅
    • spring-boot
      • spring-core
    • spring-boot-starter-logging : 심각한 에러만 따로 관리 가능
      • System.out.println 대신 로깅을 많이 사용한다.
      • logback
      • slf4j : 인터페이스라고 생각하자


☘️2. test와 관련된 라이브러리

  • spring-boot-starter-test
    • junit : 테스트 프레임워크
    • mockito : 목 라이브러리
    • assertj : 테스트 코드를 좀 더 편하게 작성하게 도와주는 라이브러리
    • spring-test : 스프링 통합 테스트 지원


profile
Tistory로 옮기게 되었습니다. @haeunnohh

2개의 댓글

comment-user-thumbnail
2023년 8월 1일

잘 봤습니다. 좋은 글 감사합니다.

1개의 답글