ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 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>
















    그리고 결과출력하세요







    반응형
Designed by Tistory.