解决main No MyBatis mapper was found in 的警告
2013-11-21 10:08
513 查看
在集成Spring + mybaits时出现以下警告
org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.main No MyBatis mapper was found in 'com.***.dao.impl' package. Please check your configuration.
出现以上情况是因为你的配置文件写多了这一段,
亲爱吊丝们,把它删除吧!
原因:是
org.mybatis.spring.mapper.MapperScannerConfigurer是扫描仓储类的接口,我不是用接口方式实现管理的.所把那段删除便可!
org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.main No MyBatis mapper was found in 'com.***.dao.impl' package. Please check your configuration.
出现以上情况是因为你的配置文件写多了这一段,
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <property name="basePackage" value="com.lanyuan.dao.impl" /> </bean>
亲爱吊丝们,把它删除吧!
原因:是
org.mybatis.spring.mapper.MapperScannerConfigurer是扫描仓储类的接口,我不是用接口方式实现管理的.所把那段删除便可!
相关文章推荐
- 解决main No MyBatis mapper was found in 的警告
- No MyBatis mapper was found in '' package. Please check your configura, Could not autowire field
- No MyBatis mapper was found in '[com.study.dal.***.mapper]' package
- [org.mybatis.spring.mapper.ClassPathMapperScanner]-No MyBatis mapper was found in '[com.xxx.xxx.dao]
- No MyBatis mapper was found in 'XXX' package. Please check your configuration
- 警告: No configuration found for the specified action: 'upload' in namespace: ''.的解决办法
- 警告: No configuration found for the specified action: 'checkLogin' in namespace: ''.的解决办法
- 警告: No mapping found for HTTP request with URI [/web002/list.do] in DispatcherServlet 的解决方法
- Keil编译S3C2440工程时出错:error: A1355U: A Label was found which was in no AREA 终级解决办法
- error: A1355U: A Label was found which was in no AREA 终级解决办法
- idea中mybatis+spring boot, mapper 提示Could not autowire. No beans of … type found解决办法
- 警告: No configuration found for the specified action: 'checkLogin' in namespace: ''.的解决办法
- 警告: No configuration found for the specified action: 'checkLogin' in namespace: ''.的解决办法
- No setter found for property 'mapperLocation' in class 'org.mybatis.spring.SqlSessionFactoryBean' [c
- No valid bower.json was found in any branch ...
- "no acceptable C compiler found in $PATH"解决手记
- ubuntu 下解决“no java virtual machine was found after searching the following locations:” 方法
- 警告: No configuration found for the specified action: 'hello/sum' in namespace: '/hello'. Form action
- 解决The current branch is not configured for pull No value for key branch.master.merge found in config
- EntityFramework 启用迁移 Enable-Migrations 报异常 "No context type was found in the assembly"