[Spring Boot] Gradle 빌드 라이브러리 의존성 추가

2023. 4. 14. 15:51·Java/Spring Boot
728x90
728x90

#  AOP 라이브러리

  - https://young0105.tistory.com/192

 

1
2
3
4
5
6
dependencies {            // 그룹 아이디     :     아티팩트 아이디
    implementation 'org.springframework.boot:spring-boot-starter-aop' // AOP
 
    ... // 나머지
}
 
Colored by Color Scripter
cs

 

#  Validation 라이브러리

  - https://young0105.tistory.com/194

 

1
2
3
4
5
6
dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-validation'  // Validation
 
    ... // 나머지
}
 
Colored by Color Scripter
cs

 

#  JSP 템플릿 엔진 라이브러리 + JSTL 라이브러리

  - https://young0105.tistory.com/197

 

1
2
3
4
5
6
7
dependencies {
    implementation 'org.apache.tomcat.embed:tomcat-embed-jasper' // JSP
    implementation 'javax.servlet:jstl' // JSTL
 
    ... // 나머지
}
 
Colored by Color Scripter
cs

 

#  MyBatis 라이브러리

  - SQL mapper 프레임워크

  - 객체와 SQL 쿼리를 매핑하여, 개발자가 SQL 쿼리를 직접 작성하지 않아도 DB에 접근할 수 있게 지원

  - MyBatis와 MyBatis-Spring 연동을 자동으로 설정해줌

 

1
2
3
4
5
6
dependencies {
    implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.3.0'
 
    ... // 나머지
}
 
Colored by Color Scripter
cs

 

#  H2 Database 라이브러리

  - 프로젝트 생성 시 체크하면 자동 생성

  - Java 기반의 RDBMS인 H2 Database를 제공함

  - 인메모리 데이터베이스

      : 디스크/파일시스템 대신, 주 메모리(RAM)에 데이터를 저장/조회/수정하는 데이터베이스

      · 디스크에 저장되지 않아, DB의 I/O 작업이 없음

          → 빠른 속도로 데이터 처리 가능

      · 메모리에 저장됨

          → 영속성을 가지지 않음

               : RAM은 휘발성 메모리이므로, 애플리케이션이 종료되면 데이터가 모두 초기화됨

      · 개발/테스트용 DB로 유용함

  - 서버를 시작한 후, localhost:포트번호/h2-console로 들어가면 DB를 확인할 수 있음

 

 

1
2
3
4
5
6
dependencies {
    runtimeOnly 'com.h2database:h2'
 
    ... // 나머지
}
 
Colored by Color Scripter
cs

 

  - runtimeOnly

      · Gradle에서 라이브러리 의존성을 추가할 때 사용하는 키워드

      · 빌드 시에는 불필요하지만, 런타임(실행) 시에만 해당 라이브러리가 필요한 경우에 사용됨

 

320x100
반응형
저작자표시 비영리 변경금지 (새창열림)

'Java > Spring Boot' 카테고리의 다른 글

[Spring Boot] 프로젝트 초기 세팅  (0) 2023.04.14
[Spring Boot] yml 파일  (0) 2023.04.14
[Spring Boot] 인터셉터 구현 예시  (0) 2023.04.13
[Spring Boot] 세션 (Session)  (0) 2023.04.13
[Spring Boot] 인터셉터 (Interceptor) ★  (0) 2023.04.13
'Java/Spring Boot' 카테고리의 다른 글
  • [Spring Boot] 프로젝트 초기 세팅
  • [Spring Boot] yml 파일
  • [Spring Boot] 인터셉터 구현 예시
  • [Spring Boot] 세션 (Session)
스응
스응
    반응형
    250x250
  • 스응
    이서영의 개발 블로그
    스응
  • 전체
    오늘
    어제
  • 글쓰기 관리
    • 분류 전체보기 (383)
      • Java (134)
        • Base (54)
        • Spring Boot (37)
        • JSP (16)
        • Swing (GUI) (20)
        • Design Pattern (7)
      • C# (13)
      • PHP (18)
      • SQL (27)
      • Vue.js (10)
      • Tailwind CSS (4)
      • TypeScript (7)
      • HTML & CSS (27)
      • JavaScript (26)
      • jQuery (10)
      • Android (3)
      • - - - - - - - - - - - - - - (0)
      • Hotkeys (5)
      • CS (30)
      • etc. (13)
      • Error Note (14)
      • Team Project (24)
        • Airlines Web Project (12)
        • University Web Project (6)
        • Strikers 1945 GUI Project (6)
      • My Project (18)
        • Library Web Project (8)
        • Pet Shopping Mall GUI Project (10)
  • 블로그 메뉴

    • Home
    • Write
  • 링크

    • 깃허브
  • 공지사항

  • 인기 글

  • 태그

    Codeigniter
    Android
    java
    typeScript
    CSS
    Swing
    http
    개발일지
    errorNote
    HTML
    vuejs
    js
    오블완
    php
    jsp
    면접
    tailwindcss
    SEO
    zapier
    Hotkeys
    C#
    git
    cs
    티스토리챌린지
    SpringBoot
    SQL
    Wordpress
    jQuery
  • 최근 댓글

  • hELLO· Designed By정상우.v4.10.0
스응
[Spring Boot] Gradle 빌드 라이브러리 의존성 추가
상단으로

티스토리툴바