build.gradle 의 여러가지 dependencies 들

build.gradle 의 여러가지 dependencies 들

build.gradle 의 dependencies

오라클 드라이버 와 마이바티스는 디비연결을 안하면 디비 연결 해달라고 하고 스프링 실행이 안되기 때문에 주석 처리를 하고 gradle 리프래쉬를 한 번 해주고 돌리면 된다.

프로젝트를 생성할 때 클릭해주면 dependencies 가 저렇게 생겨나게 된다.

dependencies 가 저렇게 생겨나게 된다.

만약 저렇게 눌러 생성하지 않았더라도 dependencies 에 나중에 추가 해주면 된다.

dependencies { //타임리프 선택할 경우 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' //스프링 웹 implementation 'org.springframework.boot:spring-boot-starter-web' providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' testImplementation 'org.springframework.boot:spring-boot-starter-test' //오라클 드라이버 runtimeOnly 'com.oracle.database.jdbc:ojdbc8' //마이바티스 implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0' //스프링 부트 디벨롭툴 developmentOnly 'org.springframework.boot:spring-boot-devtools' //롬복 compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' }

from http://gulchichi.tistory.com/41 by ccl(A) rewrite - 2021-11-24 15:01:42