在集成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
- <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
- <property name="basePackage" value="com.lanyuan.dao.impl" />
- </bean>
亲爱吊丝们,把它删除吧!
时间: 2024-10-01 07:17:59