JAVA Basic 강의자료] MyBatis 설정파일 샘플

 

JAVA Basic 강의자료] MyBatis 설정파일 샘플

 

 

 

 

실무개발자를위한 실무교육 전문교육센터학원
www.oraclejava.co.kr에 오시면 보다 다양한 강좌를 보실 수 있습니다.

 

 

 

MyBatis 설정파일 샘플

 

 

<소스코드>

 

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<environments default="development">
        <environment id="development">
            <transactionManager type="JDBC" />
            <dataSource type="POOLED">
                <property name="driver" value=“jdbc.oracle.driver.OracleDriver" />
                <property name="url"
                    value=“jdbc:oracle:thin@localhost:orcl" />
                <property name="username" value=“scott" />
                <property name="password" value=“tiger" />
            </dataSource>
        </environment>
    </environments>
    <mappers>
        <mapper resource="sample/dao/EmpMapper.xml" />
    </mappers>
</configuration>

+ Recent posts