为什么80%的码农都做不了架构师?>>>   

Springboot整合注解和xml出现的错误

详细看下面

***************************
APPLICATION FAILED TO START
***************************

Description:

Field accountDao in com.mdxl.service.AccountService required a bean of type 'com.mdxl.dao.MbAccountDao' that could not be found.

Action:

Consider defining a bean of type 'com.mdxl.dao.MbAccountDao' in your configuration

网上找了好多,都说少注解什么的,我这个是因为这个

@MapperScan(basePackages="com.mdxl.mapper")

正确的是:@MapperScan(basePackages="com.mdxl"),有的interface和mapper扫描不到会报错

转载于:https://my.oschina.net/mdxlcj/blog/1536123

Field accountDao in com.mdxl.service.AccountService required a bean of type 'com.mdxl.dao.MbAccountD相关推荐

  1. Field xxxMapper in com.xxx.service.UserService required a bean of type ....

    问题 启动springboot项目时出现了 Field xxxMapper in xxx.service.UserService required a bean of type 'cxxx.mappe ...

  2. 使用restTemplate启动报错:Field restTemplate in com.demo.service.OrderToMemberService required a bean of ty

    报错内容: Field restTemplate in com.demo.service.OrderToMemberService required a bean of type 'org.sprin ...

  3. SpringBootTest遇到的问题----Field userMapper in xxx.service.UserService required a bean of type

    在单元测试中遇到:Field userMapper in xxx.service.UserService required a bean of type 在具体的测试方法中使用了service中的方法 ...

  4. Field testMapper in com.example.demo.service.TestService required a bean of type ‘com.example.demo.m

    由于解决过程太漫长,直接给出解决方案: 原因mybatis的jar包导错了!Mapper接口类上使用了注解@Mapper,根据intellij idea提示引入了依赖: <dependency& ...

  5. Field rightsService in com.jt.controller.RightsController required a bean of type ‘com.jt.service.R

    报错信息 Field rightsService in com.jt.controller.RightsController required a bean of type 'com.jt.servi ...

  6. 启动SpringBoot报错:Field userService in com.sunshin.controller.UserController required a bean of type...

    当项目启动SpringBoot报这个错误时: Field userService in com.sunshine.controller.UserController required a bean o ...

  7. 解决办法 Field userService in com.sxsj.controller.RegistLoginController required a bean of type

    转自:https://blog.csdn.net/awmw74520/article/details/82687288 APPLICATION FAILED TO START Error starti ...

  8. SpringBoot项目启动报错:Field userMapper in com.demo.controller.MemberController required a bean of type ‘c

    问题描述: SpringBoot项目启动报错,报错内容:'com.xxx.mapper.XxxxMapper' that could not be found ******************** ...

  9. Field myFeignClient in com.zkh.controller.FeignController required a bean of type 'com.zkh.feign.MyF

    Description:Field myFeignClient in com.zkh.controller.FeignController required a bean of type 'com.z ...

最新文章

  1. SQLSERVER锁知识
  2. (转)msys2使用教程
  3. 计算机技术在机械设计中的应用,计算机技术在机械设计制造和自动化中的应用(原稿)...
  4. MongoDB副本集成员状态
  5. 关于vuex中actions可以返回promise的用法
  6. 使用SQL语句的子查询批量复制表数据
  7. python支持双向索引_python3 deque 双向队列创建与使用方法分析
  8. Linux下不同颜色文件的类型
  9. java myqq ui_myqq: Java版SWing“高”仿QQ即时通聊天系统
  10. JSP从入门到精通_课堂实战视频教程
  11. python google 搜索结果爬取_对于 Python 抓取 Google 搜索结果的一些了解
  12. Python selenium —— selenium与自动化测试成神之路
  13. 点餐APP 冲刺三总结
  14. Chrome浏览器滚动条样式设置
  15. jsp调试java_[求助]jsp+javaBean调试环境问题!
  16. 电商项目day16(购物车实现)
  17. USACO 1.4 Mother's Milk 母亲的牛奶(经典的dfs倒水问题)
  18. PHP开发环境配置指南
  19. vue 父子组件mounted执行顺序
  20. 虚拟机 CentOS7 SecureCRT连接 CentOS连接不了网问题

热门文章

  1. kernel 修改启动logo
  2. LeeCode:救生艇(贪心)
  3. 自学Python3脚本100例(1-10)
  4. [论文翻译]V-Net:Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation
  5. mysql 按日期分组求和
  6. 相机快门之:电子快门
  7. Netron 可视化
  8. android开发 h264传输,基于android的H264视频无线传输系统的设计与实现
  9. 【目标检测-YOLO】YOLOv5-yolov5s TensorRT部署准备之ONNX导出(第一篇)
  10. 什么是虚拟机?虚拟机有什么用?虚拟机的特点?