---
title: "Mybatis个人感悟"
author: "theoffspring"
date: "2012-12-17T22:41:29Z"
tags: []
categories: ["开源软件"]
slug: "mybatis"
draft: false
lastmod: "2012-12-17T22:41:29Z"
id: 1749303
url: "https://theoffspring.iteye.com/blog/1749303"
---

做了一个小项目，基于maven构建，sprng mvc+mybatis，增删改比较多，查询也不少，做起增删改好麻烦啊，加个字段，改个字段，sql要同步修改，痛苦不堪，但对hibernate用得不熟，所以用了mybatis，个人感觉mybatis适合用来作查询用，而增删改还是交给Hibernate来做会轻松许多~，等有时间了好好学学Hibernate。MyBatis的动态标记能力还是有限，if不支持else