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


在集成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
 
 在CODE上查看代碼片派生到我的代碼片
  1. <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">  
  2.         <property name="basePackage" value="com.lanyuan.dao.impl" />  
  3.     </bean>   



 

 

親愛吊絲們,把它刪除吧!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM