#Oracle DB 연동
1. 프로젝트 생성 : 원하는 설정 후 → Next
2. Dependency 추가 : Oracle, Mybatis 검색해서 추가
* spring web , Spring Boot DevTools는 필수!
3. 프로젝트 생성 후 build.gradle에서 dependencies 확인
4. JSP 사용 설정 (설정은 아래 글에서)
https://developmii.tistory.com/69
Spring Boot) JSP 사용 및 설정 방법
# spring boot는 공식적으로 JSP 지원 하지 않는다.# JSP사용 할 프로젝트마다 설정해주어야한다. 1. Help → Eclipse Marketplace 2. web 검색 후 나오는 두번째 install 3. 기본설정 그대로 두고 → confirm 4. I accept
developmii.tistory.com
5. src/main/java → dao.dto.controller(패키지)
src/main/resources → mapper(폴더)
6. 설정파일에서 Mybatis, Oracle, Jsp 설정
#jsp config spring.mvc.static-path-pattern=/resources/** spring.mvc.view.prefix=/WEB-INF/views spring.mvc.view.suffix=.jsp # Oracle Datasource config spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver spring.datasource.url=jdbc:oracle:thin:@localhost:1521:xe spring.datasource.username= oracle설정이름 spring.datasource.password= oracle설정pw # MyBatis config mybatis.mapper-locations=/**/*.xml logging.level.cohttp://m.설정한패키지이름.member.dao=trace |
# xml파일 mapper 설정시 오류 난다면?
Window - preferences - xml(wild web developer) - Download ... 체크해주고 Apply 해준다
# src/main/resources → static → css,img,js 폴더 만드는 위치
'Do it > Program 설치 | 설정' 카테고리의 다른 글
Spring Boot) JSP 사용 및 설정 방법 (0) | 2025.09.04 |
---|---|
Spring Boot) Spring Boot 사용을 위한 프로그램 설치 및 기본 설정 (0) | 2025.09.04 |
Lombok 설치 (0) | 2025.08.27 |
STS3에 Tomcat(톰캣)서버 연결 오류 해결 (0) | 2025.08.27 |
STS3 설치 및 설정 (0) | 2025.08.27 |