-
52일 차 MyBatis와 Spring 연동삼성SDS_멀티캠퍼스/MyBatis 2015. 11. 20. 11:35반응형
밑에 쓴거를 그대로 복붙해서 쓰면 됩니다.
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>MyBatis02</groupId>
<artifactId>MyBatis02</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<myBatis_version>3.3.0</myBatis_version>
<mybatis-spring>1.2.2</mybatis-spring>
<spring_version>3.2.8.RELEASE</spring_version>
<mysql_version>5.1.35</mysql_version>
</properties>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${myBatis_version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${mybatis-spring}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring_version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring_version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring_version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql_version}</version>
</dependency>
</dependencies>
</project>
그리고 결과출력하세요
반응형'삼성SDS_멀티캠퍼스 > MyBatis' 카테고리의 다른 글
51일 차 MyBatis resultMap (0) 2015.11.19 50일 차 MyBatis 에노테이션과 xml을 혼용하기 (0) 2015.11.18 50일 차 MyBatis 인터페이스를 사용한 매핑정보(에노테이션 사용) (0) 2015.11.18 49일 차 MyBatis 만든 것 자료 (0) 2015.11.17 49일 차 MyBatis (0) 2015.11.17