博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【错误记录】Error creating bean with name: Unsatisfied dependency expressed through field
阅读量:3903 次
发布时间:2019-05-23

本文共 636 字,大约阅读时间需要 2 分钟。

启动一个Spring boot集成mybatis plus报错:

Error creating bean with name ‘examManageController’: Unsatisfied dependency expressed through field ‘examManageService’
描述:
在这里插入图片描述
启动类中有加注解mapperscan:

@MapperScan("com.naughty.userlogin02.dao")@SpringBootApplicationpublic class Userlogin02Application {
public static void main(String[] args) {
SpringApplication.run(Userlogin02Application.class, args); }}

仔细看发现路径是com.naughty.userlogin02.dao,而自己的’examManageController’:并没有在这个包下面

于是转移了这个文件:
在这里插入图片描述
再启动:
在这里插入图片描述
虽然能启动了但是还有报错
mapper[com.naughty.userlogin02.dao.ExamManageMapper.findAll] is ignored, because it exists, maybe from xml file
另外要记得service中有加注解:
在这里插入图片描述

转载地址:http://jvten.baihongyu.com/

你可能感兴趣的文章
tasklist详解
查看>>
taskkill详解
查看>>
ovs-brcompatd is not running的解决办法
查看>>
zipimport.ZipImportError: bad local file header错误的解决办法
查看>>
Ubuntu下卸载mysql
查看>>
Intel 100芯片组如何安装Win7
查看>>
Ubuntu 16.04 LTS 一键安装VNC
查看>>
Linux中su命令与sudo命令
查看>>
题目1:二维数组中的查找
查看>>
anaconda conda 切换镜像源
查看>>
Python之面向对象
查看>>
Django项目允许外部通过ip访问
查看>>
Numpy之调整数组大小
查看>>
numpy求解方程组
查看>>
免费人文数据分享网站(更新中)
查看>>
GP工具设置处理范围
查看>>
mapbox根据多边形选择点要素
查看>>
Numpy为图片四周补0
查看>>
数字图像处理中的 channels_first与channels_last
查看>>
ArcGIS 10.2 简化面/线工具Bug修复
查看>>