로딩
티스토리 데이터 처리 중입니다.

[JAVA] Spring Boot Gradle 프로젝트 postgreSQL 설정 및 MyBatis 설정

 [JAVA] Spring Boot Gradle 프로젝트 postgreSQL 설정 및 MyBatis 설정

안녕하세요. 오늘은 Gradle 프로젝트에 MyBatis 설정하는 방법에 대해 알아보겠습니다.

우선 파일 구성 캡처 화면 입니다. 1. build.gradle 파일을 찾아 아래 소스를 dependencies 안에 추가합니다. dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' // log implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16' // mybatis implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3' // lombok compileOnly 'org......