摘要: 今天尝试spring整合mybatis时遇到这么一个问题,就是在配置sqlSessionFactory时是否要配置mapperLocations的问题。 结论是:如果Mapper.xml与Mapper.class在同一个包下且同名,spring扫描Mapper.class的同时会自动扫描同名的Map 阅读全文
posted @ 2017-08-16 15:48 水军 阅读(67921) 评论(5) 推荐(6) 编辑