标签:ace dao层 pre config org 日常 lse 实现 configure
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <!--扫描dao层的接口interface--> <property name="basePackage" value="com.nf.dao"/> <property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"></property> </bean> <!--mapper xml文件就像实现类,它是怎么知道对应哪个dao层的接口的?-->
标签:ace dao层 pre config org 日常 lse 实现 configure
原文地址:https://www.cnblogs.com/Wjjxj/p/10241033.html