为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

拉莫斯之舞 2018-11-15 09:14:36
<!-- 扫描文件(自动将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"-->
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1169 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信