전자정부프레임워크 Test 프로젝트 만들기
28 Jul 20171. 프로젝트 생성 - New eGovFrame Web Project
Next->
2. 기존에 있는 db 오라클로 변경(datasource) (C:\workspace\test\src\main\resources\egovframework\spring\context-datasource.xml)
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@192.168.***.**:1521:orcl"/>
<property name="username" value="system"/>
<property name="password" value="orcl11"/>
</bean>
3. pom.xml에서 db 연결을 위해 ojdbc 넣기.
1) repository 넣기
<repository>
<id>mesir-repo</id>
<url>http://mesir.googlecode.com/svn/trunk/mavenrepo</url>
</repository>
2) dependency 넣기
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.4.0</version>
</dependency>