mybatis与spring3.1整合

详见: http://blog.yemou.net/article/query/info/tytfjhfascvhzxcytp99

 

http://www.rritw.com/a/JAVAbiancheng/Spring/20140327/442015.html

http://legend2011.blog.51cto.com/3018495/980150

http://chenjc-it.iteye.com/blog/1402939

使用MapperScannerConfigurer的时候,注意以下几点:

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

 

猜你喜欢

转载自grefr.iteye.com/blog/2051735