MyBatis环境配置及入门

上传者: devilnumber | 上传时间: 2021-07-05 21:11:14 | 文件大小: 12.97MB | 文件类型: ZIP
1、配置文件 Configure.xml 是 mybatis 用来建立 sessionFactory,里面主要包含了数据库连接相关内容,还有 java 类所对应的别名,比如: 这个别名非常重要,在具体的类的映射中,比如:User.xml 中 resultType 就是对应这个。要保持一致,这里的 resultType 还有另外单独的定义方式,后面学习到我们再详细介绍说明。 2、Configure.xml 里面 的是包含要映射的类的 xml 配置文件。 3、在User.xml 文件里面主要是定义各种 SQL 语句,以及这些语句的参数,以及要返回的类型等等。

文件下载

资源详情

[{"title":"( 60 个子文件 12.97MB ) MyBatis环境配置及入门","children":[{"title":"mybatis-start","children":[{"title":"yiibai-log4j.log <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"log4j.properties <span style='color:#111;'> 861B </span>","children":null,"spread":false},{"title":"com","children":[{"title":"yiibai","children":[{"title":"mybatis","children":[{"title":"models","children":[{"title":"User.class <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"HelloWord.class <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"UserMapper.xml <span style='color:#111;'> 343B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"Config","children":[{"title":"Configure.xml <span style='color:#111;'> 1002B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 598B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"log4j.properties <span style='color:#111;'> 861B </span>","children":null,"spread":false},{"title":"com","children":[{"title":"yiibai","children":[{"title":"mybatis","children":[{"title":"models","children":[{"title":"User.java <span style='color:#111;'> 736B </span>","children":null,"spread":false},{"title":"HelloWord.java <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"UserMapper.xml <span style='color:#111;'> 343B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"Config","children":[{"title":"Configure.xml <span style='color:#111;'> 1002B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 389B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 3.79KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"com.springsource.org.apache.commons.logging-1.1.1.jar <span style='color:#111;'> 60.02KB </span>","children":null,"spread":false},{"title":"org.springframework.core-3.0.1.RELEASE-A.jar <span style='color:#111;'> 347.26KB </span>","children":null,"spread":false},{"title":"org.springframework.web.servlet-3.0.1.RELEASE-A.jar <span style='color:#111;'> 388.96KB </span>","children":null,"spread":false},{"title":"com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar <span style='color:#111;'> 1.57MB </span>","children":null,"spread":false},{"title":"com.springsource.org.apache.commons.pool-1.5.3.jar <span style='color:#111;'> 94.85KB </span>","children":null,"spread":false},{"title":"commons-collections.jar <span style='color:#111;'> 546.26KB </span>","children":null,"spread":false},{"title":"org.springframework.web.portlet-3.0.1.RELEASE-A.jar <span style='color:#111;'> 169.35KB </span>","children":null,"spread":false},{"title":"jsf-impl.jar <span style='color:#111;'> 1.15MB </span>","children":null,"spread":false},{"title":"standard.jar <span style='color:#111;'> 384.04KB </span>","children":null,"spread":false},{"title":"org.springframework.aop-3.0.1.RELEASE-A.jar <span style='color:#111;'> 312.79KB </span>","children":null,"spread":false},{"title":"mybatis-3.2.3.jar <span style='color:#111;'> 696.83KB </span>","children":null,"spread":false},{"title":"org.springframework.web-3.0.1.RELEASE-A.jar <span style='color:#111;'> 351.61KB </span>","children":null,"spread":false},{"title":"com.springsource.org.codehaus.jackson.mapper-1.0.0.jar <span style='color:#111;'> 263.57KB </span>","children":null,"spread":false},{"title":"persistence.jar <span style='color:#111;'> 69.27KB </span>","children":null,"spread":false},{"title":"com.springsource.org.apache.log4j-1.2.15.jar <span style='color:#111;'> 387.42KB </span>","children":null,"spread":false},{"title":"xapool.jar <span style='color:#111;'> 89.66KB </span>","children":null,"spread":false},{"title":"org.springframework.asm-3.0.1.RELEASE-A.jar <span style='color:#111;'> 51.84KB </span>","children":null,"spread":false},{"title":"jsf-api.jar <span style='color:#111;'> 314.29KB </span>","children":null,"spread":false},{"title":"org.springframework.transaction-3.0.1.RELEASE-A.jar <span style='color:#111;'> 223.40KB </span>","children":null,"spread":false},{"title":"commons-logging-1.1.1.jar <span style='color:#111;'> 59.26KB </span>","children":null,"spread":false},{"title":"org.springframework.orm-3.0.1.RELEASE-A.jar <span style='color:#111;'> 323.52KB </span>","children":null,"spread":false},{"title":"org.springframework.expression-3.0.1.RELEASE-A.jar <span style='color:#111;'> 152.48KB </span>","children":null,"spread":false},{"title":"com.springsource.org.aopalliance-1.0.0.jar <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"org.springframework.aspects-3.0.1.RELEASE-A.jar <span style='color:#111;'> 29.38KB </span>","children":null,"spread":false},{"title":"com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar <span style='color:#111;'> 603.17KB </span>","children":null,"spread":false},{"title":"jotm.jar <span style='color:#111;'> 121.40KB </span>","children":null,"spread":false},{"title":"org.springframework.jdbc-3.0.1.RELEASE-A.jar <span style='color:#111;'> 368.80KB </span>","children":null,"spread":false},{"title":"commons-logging-1.1.jar <span style='color:#111;'> 51.67KB </span>","children":null,"spread":false},{"title":"mysql-connector-java-5.1.25-bin.jar <span style='color:#111;'> 828.52KB </span>","children":null,"spread":false},{"title":"commons-pool.jar <span style='color:#111;'> 41.50KB </span>","children":null,"spread":false},{"title":"org.springframework.oxm-3.0.1.RELEASE-A.jar <span style='color:#111;'> 55.84KB </span>","children":null,"spread":false},{"title":"jstl-1.2.jar <span style='color:#111;'> 404.53KB </span>","children":null,"spread":false},{"title":"commons-dbcp.jar <span style='color:#111;'> 118.90KB </span>","children":null,"spread":false},{"title":"com.springsource.org.apache.commons.httpclient-3.1.0.jar <span style='color:#111;'> 300.75KB </span>","children":null,"spread":false},{"title":"com.springsource.net.sf.cglib-2.2.0.jar <span style='color:#111;'> 319.11KB </span>","children":null,"spread":false},{"title":"org.springframework.instrument.tomcat-3.0.1.RELEASE-A.jar <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"com.springsource.org.apache.commons.lang-2.4.0.jar <span style='color:#111;'> 257.68KB </span>","children":null,"spread":false},{"title":"freemarker-2.3.8.jar <span style='color:#111;'> 783.69KB </span>","children":null,"spread":false},{"title":"org.springframework.context-3.0.1.RELEASE-A.jar <span style='color:#111;'> 641.58KB </span>","children":null,"spread":false},{"title":"org.springframework.instrument-3.0.1.RELEASE-A.jar <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"log4j-1.2.17.jar <span style='color:#111;'> 478.40KB </span>","children":null,"spread":false},{"title":"com.springsource.org.apache.commons.fileupload-1.2.0.jar <span style='color:#111;'> 52.81KB </span>","children":null,"spread":false},{"title":"org.springframework.web.struts-3.0.1.RELEASE-A.jar <span style='color:#111;'> 524.34KB </span>","children":null,"spread":false},{"title":"org.springframework.beans-3.0.1.RELEASE-A.jar <span style='color:#111;'> 535.00KB </span>","children":null,"spread":false},{"title":"mybatis-spring-1.1.1.jar <span style='color:#111;'> 40.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"user1.sql <span style='color:#111;'> 954B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明