mybatis框架

 
  
xml version="1.0" encoding="UTF-8"?> xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.bdqn BasicDao09 1.0-SNAPSHOT org.mybatis mybatis 3.2.8 mysql mysql-connector-java 5.1.28 junit junit 4.10 log4j log4j 1.2.12 src/main/java **/*.xml
<核心配置
xml version="1.0" encoding="UTF-8"?>
configuration
        PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-config.dtd">


    
    resource="database.properties">

    
       
        name="logImpl" value="LOG4J">
    
        
    
        name="com.bdqn.entity">
    
    
    default="development">
        id="development">
            
            type="JDBC">
            
            type="POOLED">
                name="driver" value="${jdbc.driver}">
                name="url" value="${jdbc.url}">
                name="username" value="${jdbc.username}">
                name="password" value="${jdbc.password}">
            
        
    

    
        resource="com/bdqn/dao/UserMapper.xml">
    

你可能感兴趣的:(mybatis)