解决main No MyBatis mapper was found in 的警告

时间:2016-04-28 15:26:37   收藏:0   阅读:2810

在集成Spring + mybaits时出现以下警告

org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.main No MyBatis mapper was found in ‘com.***.dao.impl‘ package. Please check your configuration.

 

出现以上情况是因为你的配置文件写多了这一段,

 

 

[java] view plain copy
 
 技术分享技术分享
  1. <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">  
  2.         <property name="basePackage" value="com.lanyuan.dao.impl" />  
  3.     </bean>   



 

 

亲爱吊丝们,把它删除吧!

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!