spring mvc 注入dao失败,怎么办?

<!-- 扫描文件(自动将dao层注入) -
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"
p:dataSource-ref="dataSource" p:configLocation="classpath:mybatis-config.xml" p:mapperLocations="classpath:mapper/*Mapper.xml" />
<!-- configLocation为mybatis配置文件; mapperLocations为所有mapper映射文件,若mybatis配置文件中已经添加mapper映射文件,mapperLocations无需再配,否则报错。 
p:mapperLocations="classpath:mapper/*Mapper.xml"
-->

拉莫斯之舞
浏览 1209回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP