* Spring and MyBatis integration maven project Complete article is available in http://inprogress.baeldung.com/wp-admin/post.php * Spring-MyBatis integration example This code demonstrates how to use MyBatis in Sring environment. Full details could be found in article http://inprogress.baeldung.com/?p=31706&preview=true
		
			
				
	
	
		
			63 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <project 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/maven-v4_0_0.xsd">
 | |
| 	<modelVersion>4.0.0</modelVersion>
 | |
| 	<groupId>com.baeldung</groupId>
 | |
| 	<artifactId>spring-mybatis</artifactId>
 | |
| 	<packaging>jar</packaging>
 | |
| 	<version>0.0.1-SNAPSHOT</version>
 | |
| 	<name>spring-mybatis Maven Webapp</name>
 | |
| 	<url>http://maven.apache.org</url>
 | |
| 	<dependencies>
 | |
| 		<dependency>
 | |
| 			<groupId>org.mybatis</groupId>
 | |
| 			<artifactId>mybatis</artifactId>
 | |
| 			<version>3.1.1</version>
 | |
| 		</dependency>
 | |
| 		<dependency>
 | |
| 			<groupId>org.mybatis</groupId>
 | |
| 			<artifactId>mybatis-spring</artifactId>
 | |
| 			<version>1.1.1</version>
 | |
| 		</dependency>
 | |
| 		<dependency>
 | |
| 			<groupId>org.springframework</groupId>
 | |
| 			<artifactId>spring-context-support</artifactId>
 | |
| 			<version>3.1.1.RELEASE</version>
 | |
| 		</dependency>
 | |
| 		<dependency>
 | |
| 			<groupId>org.springframework</groupId>
 | |
| 			<artifactId>spring-test</artifactId>
 | |
| 			<version>3.1.1.RELEASE</version>
 | |
| 			<scope>test</scope>
 | |
| 		</dependency>
 | |
| 		<dependency>
 | |
| 			<groupId>mysql</groupId>
 | |
| 			<artifactId>mysql-connector-java</artifactId>
 | |
| 			<version>5.1.40</version>
 | |
| 		</dependency>
 | |
| 		<dependency>
 | |
| 			<groupId>javax.servlet</groupId>
 | |
| 			<artifactId>jstl</artifactId>
 | |
| 			<version>1.2</version>
 | |
| 		</dependency>
 | |
| 		<dependency>
 | |
| 			<groupId>org.springframework</groupId>
 | |
| 			<artifactId>spring-webmvc</artifactId>
 | |
| 			<version>3.2.4.RELEASE</version>
 | |
| 		</dependency>
 | |
| 		<dependency>
 | |
| 			<groupId>javax.servlet</groupId>
 | |
| 			<artifactId>servlet-api</artifactId>
 | |
| 			<version>2.5</version>
 | |
| 		</dependency>
 | |
| 		<dependency>
 | |
| 			<groupId>junit</groupId>
 | |
| 			<artifactId>junit</artifactId>
 | |
| 			<version>3.8.1</version>
 | |
| 			<scope>test</scope>
 | |
| 		</dependency>
 | |
| 	</dependencies>
 | |
| 	<build>
 | |
| 		<finalName>spring-mybatis</finalName>
 | |
| 	</build>
 | |
| </project>
 |