MyBatis环境配置及入门

时间:2021-05-03 11:01:28
【文件属性】:
文件名称:MyBatis环境配置及入门
文件大小:12.97MB
文件格式:ZIP
更新时间:2021-05-03 11:01:28
mybatis 1、配置文件 Configure.xml 是 mybatis 用来建立 sessionFactory,里面主要包含了数据库连接相关内容,还有 java 类所对应的别名,比如: 这个别名非常重要,在具体的类的映射中,比如:User.xml 中 resultType 就是对应这个。要保持一致,这里的 resultType 还有另外单独的定义方式,后面学习到我们再详细介绍说明。 2、Configure.xml 里面 的是包含要映射的类的 xml 配置文件。 3、在User.xml 文件里面主要是定义各种 SQL 语句,以及这些语句的参数,以及要返回的类型等等。
【文件预览】:
mybatis-start
----yiibai-log4j.log(0B)
----bin()
--------log4j.properties(861B)
--------com()
--------Config()
----.settings()
--------org.eclipse.jdt.core.prefs(598B)
----src()
--------log4j.properties(861B)
--------com()
--------Config()
----.project(389B)
----.classpath(4KB)
----lib()
--------com.springsource.org.apache.commons.logging-1.1.1.jar(60KB)
--------org.springframework.core-3.0.1.RELEASE-A.jar(347KB)
--------org.springframework.web.servlet-3.0.1.RELEASE-A.jar(389KB)
--------com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar(1.57MB)
--------com.springsource.org.apache.commons.pool-1.5.3.jar(95KB)
--------commons-collections.jar(546KB)
--------org.springframework.web.portlet-3.0.1.RELEASE-A.jar(169KB)
--------jsf-impl.jar(1.15MB)
--------standard.jar(384KB)
--------org.springframework.aop-3.0.1.RELEASE-A.jar(313KB)
--------mybatis-3.2.3.jar(697KB)
--------org.springframework.web-3.0.1.RELEASE-A.jar(352KB)
--------com.springsource.org.codehaus.jackson.mapper-1.0.0.jar(264KB)
--------persistence.jar(69KB)
--------com.springsource.org.apache.log4j-1.2.15.jar(387KB)
--------xapool.jar(90KB)
--------org.springframework.asm-3.0.1.RELEASE-A.jar(52KB)
--------jsf-api.jar(314KB)
--------org.springframework.transaction-3.0.1.RELEASE-A.jar(223KB)
--------commons-logging-1.1.1.jar(59KB)
--------org.springframework.orm-3.0.1.RELEASE-A.jar(324KB)
--------org.springframework.expression-3.0.1.RELEASE-A.jar(152KB)
--------com.springsource.org.aopalliance-1.0.0.jar(5KB)
--------org.springframework.aspects-3.0.1.RELEASE-A.jar(29KB)
--------com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar(603KB)
--------jotm.jar(121KB)
--------org.springframework.jdbc-3.0.1.RELEASE-A.jar(369KB)
--------commons-logging-1.1.jar(52KB)
--------mysql-connector-java-5.1.25-bin.jar(829KB)
--------commons-pool.jar(41KB)
--------org.springframework.oxm-3.0.1.RELEASE-A.jar(56KB)
--------jstl-1.2.jar(405KB)
--------commons-dbcp.jar(119KB)
--------com.springsource.org.apache.commons.httpclient-3.1.0.jar(301KB)
--------com.springsource.net.sf.cglib-2.2.0.jar(319KB)
--------org.springframework.instrument.tomcat-3.0.1.RELEASE-A.jar(5KB)
--------com.springsource.org.apache.commons.lang-2.4.0.jar(258KB)
--------freemarker-2.3.8.jar(784KB)
--------org.springframework.context-3.0.1.RELEASE-A.jar(642KB)
--------org.springframework.instrument-3.0.1.RELEASE-A.jar(2KB)
--------log4j-1.2.17.jar(478KB)
--------com.springsource.org.apache.commons.fileupload-1.2.0.jar(53KB)
--------org.springframework.web.struts-3.0.1.RELEASE-A.jar(524KB)
--------org.springframework.beans-3.0.1.RELEASE-A.jar(535KB)
--------mybatis-spring-1.1.1.jar(40KB)
----user1.sql(954B)

网友评论