mybatis 学习笔记 001 第一个程序

Posted khlbat

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mybatis 学习笔记 001 第一个程序相关的知识,希望对你有一定的参考价值。

 

pom

parent

  1 <?xml version="1.0" encoding="UTF-8"?>
  2 <project xmlns="http://maven.apache.org/POM/4.0.0"
  3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5     <modelVersion>4.0.0</modelVersion>
  6 
  7     <groupId>com.laolang.mybatisstudy</groupId>
  8     <artifactId>mybatisstudy-parent</artifactId>
  9     <version>1.0-SNAPSHOT</version>
 10     <modules>
 11         <module>../mybatisstudy-one</module>
 12     </modules>
 13     <packaging>pom</packaging>
 14 
 15 
 16     <!-- 集中定义依赖版本号 -->
 17     <properties>
 18         <!-- test -->
 19         <junit.version>4.10</junit.version>
 20         <hamcrest.version>1.3</hamcrest.version>
 21 
 22 
 23         <!-- java ee -->
 24         <javaee-api.version>7.0</javaee-api.version>
 25         <servlet-api.version>3.0.1</servlet-api.version>
 26         <persistence-api.version>1.0</persistence-api.version>
 27         <jstl.version>1.2</jstl.version>
 28         <standard.version>1.1.2</standard.version>
 29 
 30 
 31         <!-- spring -->
 32         <spring.version>4.2.0.RELEASE</spring.version>
 33 
 34         <!-- mybatis  -->
 35         <mybatis.version>3.3.0</mybatis.version>
 36         <mybatis.spring.version>1.2.2</mybatis.spring.version>
 37         <mybatis.paginator.version>1.2.15</mybatis.paginator.version>
 38         <pagehelper.version>4.0.3</pagehelper.version>
 39         <tk.mapper.version>3.2.2</tk.mapper.version>
 40 
 41 
 42         <mysql.version>5.1.38</mysql.version>
 43 
 44         <!-- log -->
 45         <slf4j.version>1.7.12</slf4j.version>
 46         <logback.version>1.1.3</logback.version>
 47         <logback.ext.version>0.1.2</logback.ext.version>
 48 
 49         <!-- json -->
 50         <jackson.version>2.4.2</jackson.version>
 51         <jackson.mapper.version>1.9.13</jackson.mapper.version>
 52 
 53         <!-- google -->
 54         <gson.version>2.2.2</gson.version>
 55         <guava.version>18.0</guava.version>
 56 
 57         <!-- alibaba -->
 58         <druid.version>1.0.12</druid.version>
 59 
 60         <!-- ehcache -->
 61         <ehcache.version>2.7.5</ehcache.version>
 62 
 63         <!-- apache -->
 64         <httpclient.version>4.5</httpclient.version>
 65         <commons-lang3.version>3.3.2</commons-lang3.version>
 66         <commons-io.version>2.5</commons-io.version>
 67         <commons-fileupload.version>1.3.2</commons-fileupload.version>
 68         <commons-net.version>3.3</commons-net.version>
 69         <commons-codec.version>1.9</commons-codec.version>
 70         <shiro.version>1.3.2</shiro.version>
 71         <activemq-all.version>5.11.2</activemq-all.version>
 72         <activemq-core.version>5.7.0</activemq-core.version>
 73         <activemq-pool.version>5.11.2</activemq-pool.version>
 74 
 75         <!-- beetl -->
 76         <beetl.version>2.7.5</beetl.version>
 77 
 78         <!-- jedis -->
 79         <jedis.version>2.6.3</jedis.version>
 80 
 81         <!-- JSR 303 -->
 82         <hibernate-validator.version>5.1.3.Final</hibernate-validator.version>
 83         <validator-api.version>1.1.0.Final</validator-api.version>
 84 
 85         <joda-time.version>2.5</joda-time.version>
 86         <cglib.versoin>3.1</cglib.versoin>
 87 
 88         <quartz.versoin>2.2.1</quartz.versoin>
 89 
 90         <spring-rabbit.version>1.4.0.RELEASE</spring-rabbit.version>
 91     </properties>
 92 
 93     <dependencyManagement>
 94         <dependencies>
 95             <!-- test -->
 96             <dependency>
 97                 <groupId>junit</groupId>
 98                 <artifactId>junit</artifactId>
 99                 <version>${junit.version}</version>
100                 <scope>test</scope>
101             </dependency>
102             <dependency>
103                 <groupId>org.hamcrest</groupId>
104                 <artifactId>hamcrest-all</artifactId>
105                 <version>${hamcrest.version}</version>
106                 <scope>test</scope>
107             </dependency>
108 
109             <!-- java ee-->
110             <dependency>
111                 <groupId>javax</groupId>
112                 <artifactId>javaee-api</artifactId>
113                 <version>${javaee-api.version}</version>
114                 <scope>provided</scope>
115             </dependency>
116             <dependency>
117                 <groupId>javax.servlet</groupId>
118                 <artifactId>javax.servlet-api</artifactId>
119                 <version>${servlet-api.version}</version>
120                 <scope>provided</scope>
121             </dependency>
122             <dependency>
123                 <groupId>javax.persistence</groupId>
124                 <artifactId>persistence-api</artifactId>
125                 <version>1.0</version>
126             </dependency>
127             <dependency>
128                 <groupId>jstl</groupId>
129                 <artifactId>jstl</artifactId>
130                 <version>${jstl.version}</version>
131             </dependency>
132             <dependency>
133                 <groupId>taglibs</groupId>
134                 <artifactId>standard</artifactId>
135                 <version>${standard.version}</version>
136             </dependency>
137 
138             <!-- Spring -->
139             <dependency>
140                 <groupId>org.springframework</groupId>
141                 <artifactId>spring-context</artifactId>
142                 <version>${spring.version}</version>
143             </dependency>
144             <dependency>
145                 <groupId>org.springframework</groupId>
146                 <artifactId>spring-oxm</artifactId>
147                 <version>${spring.version}</version>
148             </dependency>
149             <dependency>
150                 <groupId>org.springframework</groupId>
151                 <artifactId>spring-tx</artifactId>
152                 <version>${spring.version}</version>
153             </dependency>
154             <dependency>
155                 <groupId>org.springframework</groupId>
156                 <artifactId>spring-jdbc</artifactId>
157                 <version>${spring.version}</version>
158             </dependency>
159             <dependency>
160                 <groupId>org.springframework</groupId>
161                 <artifactId>spring-beans</artifactId>
162                 <version>${spring.version}</version>
163             </dependency>
164             <dependency>
165                 <groupId>org.springframework</groupId>
166                 <artifactId>spring-aop</artifactId>
167                 <version>${spring.version}</version>
168             </dependency>
169             <dependency>
170                 <groupId>org.springframework</groupId>
171                 <artifactId>spring-test</artifactId>
172                 <version>${spring.version}</version>
173             </dependency>
174             <dependency>
175                 <groupId>org.springframework</groupId>
176                 <artifactId>spring-aspects</artifactId>
177                 <version>${spring.version}</version>
178             </dependency>
179             <dependency>
180                 <groupId>org.springframework</groupId>
181                 <artifactId>spring-web</artifactId>
182                 <version>${spring.version}</version>
183             </dependency>
184             <dependency>
185                 <groupId>org.springframework</groupId>
186                 <artifactId>spring-webmvc</artifactId>
187                 <version>${spring.version}</version>
188             </dependency>
189             <dependency>
190                 <groupId>org.springframework</groupId>
191                 <artifactId>spring-core</artifactId>
192                 <version>${spring.version}</version>
193             </dependency>
194             <dependency>
195                 <groupId>org.springframework</groupId>
196                 <artifactId>spring-jms</artifactId>
197                 <version>${spring.version}</version>
198             </dependency>
199             <dependency>
200                 <groupId>org.springframework</groupId>
201                 <artifactId>spring-context-support</artifactId>
202                 <version>${spring.version}</version>
203             </dependency>
204 
205 
206 
207             <!-- JSR 303 -->
208             <dependency>
209                 <groupId>javax.validation</groupId>
210                 <artifactId>validation-api</artifactId>
211                 <version>${validator-api.version}</version>
212             </dependency>
213 
214             <dependency>
215                 <groupId>org.hibernate</groupId>
216                 <artifactId>hibernate-validator</artifactId>
217                 <version>${hibernate-validator.version}</version>
218             </dependency>
219 
220 
221             <!-- beetl -->
222             <dependency>
223                 <groupId>

以上是关于mybatis 学习笔记 001 第一个程序的主要内容,如果未能解决你的问题,请参考以下文章

Java学习笔记001-Hello World

Mybatis学习笔记导航

mybatis学习笔记-01

mybatis学习笔记-01

Linux内核设计第二周学习总结 完成一个简单的时间片轮转多道程序内核代码

Mybatis框架学习——我的第一个Mybatis程序