在集成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
 
 解决main No MyBatis mapper was found in 的警告解决main No MyBatis mapper was found in 的警告
  1. <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">  
  2.         <property name="basePackage" value="com.lanyuan.dao.impl" />  
  3.     </bean>   



 

 

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

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
猜你喜欢
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案