== 요약 ==
데이터베이스 연결 설정
- C:\oraclexe\app\oracle\product\11.2.0\server\jdbc\lib 에서 ojbc6.jar 찾아서 복사
- 아래 설정 경로 /src/main/webapp/WEB-INF/lib에 붙여넣기
- build.gradle 파일에 dependencies 블록에 아래 소스코드 추가 후 재빌드 (코끼리 새로고침 버튼)
```groovy
//오라클 라이브러리 (11g edition - gradle, maven 라이센스 문제 공식 지원 불가)
implementation fileTree(dir: '/src/main/webapp/WEB-INF/lib', include: ['*.jar'])
```ation fileTree(dir: '/src/main/webapp/WEB-INF/lib', include: ['*.jar'])
```
== 요약 ==
기본 설정
https://docs.gradle.org/current/samples/sample_building_java_applications.html
Building Java Applications Sample
From inside the new project directory, run the init task using the following command in a terminal: gradle init. When prompted, select the 2: application project type and 3: Java as implementation language. Next you can choose the DSL for writing buildscri
docs.gradle.org
//오라클 라이브러리 (11g edition - gradle, maven 라이센스 문제 공식 지원 불가)
implementation fileTree(dir: '/src/main/webapp/WEB-INF/lib', include: ['*.jar'])
-> 경로 이다. 경로에 폴더 이름이 다를경우 수정해서 bulid.Gradle의 dependencies에 코드를 넣어줘야 함.
코드 입력 후 실행 시켜줘야 한다.
인텔리 제이는 좌측 상단에 새로고침
BUILD 성공
새로고침 코끼리가 보이지 않으면 좌측에 빌드폴더 들어가서 BulidDependents 더블 클릭 !
여기까지 해서 Java 툴 인텔리제이와 oracle 연결 완료!
'데이터베이스' 카테고리의 다른 글
데이터베이스_JUnit을 통한 테스트 DB 연결(인텔리제이 - 오라클)_ 22.06.29(day08) (0) | 2022.06.29 |
---|---|
데이터베이스_Spring 없이 자바로만 DB 연결(인텔리제이 - 오라클)_ 22.06.29(day08) (0) | 2022.06.29 |
데이터베이스_SQL기본(뷰, 그룹함수)_ 22.06.29(day08) (0) | 2022.06.29 |
데이터베이스_SQL기본(서브쿼리)_ 22.06.28(day07) (0) | 2022.06.28 |
데이터베이스_SQL기본(SELF_JOIN)_ 22.06.27(day06) (0) | 2022.06.27 |