---
title: "mybatis与spring3.1整合"
author: "grefr"
date: "2014-04-22T11:24:00Z"
tags: []
categories: ["开源软件"]
slug: "mybatis-spring3-1"
draft: false
lastmod: "2015-06-23T11:13:47Z"
id: 2051735
url: "https://grefr.iteye.com/blog/2051735"
---

详见： [http://blog.yemou.net/article/query/info/tytfjhfascvhzxcytp99](http://blog.yemou.net/article/query/info/tytfjhfascvhzxcytp99)

 

[http://www.rritw.com/a/JAVAbiancheng/Spring/20140327/442015.html](http://www.rritw.com/a/JAVAbiancheng/Spring/20140327/442015.html)

[http://legend2011.blog.51cto.com/3018495/980150](http://legend2011.blog.51cto.com/3018495/980150)

[http://chenjc-it.iteye.com/blog/1402939](http://chenjc-it.iteye.com/blog/1402939)

 

使用MapperScannerConfigurer的时候，注意以下几点：

必须mapper目录下的DAO类第2个字母必须小写。比如 包 com.xx 下面的类OUserMapper会找不到注入不成功，应该改为 OuserMapper.