Mybatis學習筆記(二) 之實現資料庫的增刪改查

來源:互聯網
上載者:User

標籤:--   nap   軟體   html   實戰   details   nec   實現   snapshot   

開發環境搭建

mybatis 的開發環境搭建,選擇: eclipse j2ee 版本,mysql 5.1 ,jdk 1.7,mybatis3.2.0.jar包。這些軟體工具均可以到各自的官方網站上下載。
首先建立一個名字為 MyBaits 的 dynamic web project 
1. 可以建立maven項目,依賴的包mybatis-3.2.0-SNAPSHOT.jar,mysql-connector-java-5.1.22-bin.jar 

<!-- mybatis包 --><dependency>    <groupId>org.mybatis</groupId>    <artifactId>mybatis</artifactId>    <version>3.2.0</version></dependency>        <!-- mysql -->        <dependency>            <groupId>mysql</groupId>            <artifactId>mysql-connector-java</artifactId>            <version>5.1.22</version>        </dependency>

2、構建後的項目結構

參考

1、mybatis學習筆記(一)--基本crud操作:1190000003771372

2、mybatis學習筆記入門:http://www.cnblogs.com/hellokitty1/p/5216025.html

3、mybatis實戰教程:http://blog.csdn.net/techbirds_bao/article/details/9233599/

4、深入理解mybatis原理:http://blog.csdn.net/column/details/mybatis-principle.html?page=1

Mybatis學習筆記(二) 之實現資料庫的增刪改查

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.