首页 > 其他分享 >【springboot项目运行报错】亲测有效 Parameter 0 of constructor in xxx.xxx.Controller required a bean 0

【springboot项目运行报错】亲测有效 Parameter 0 of constructor in xxx.xxx.Controller required a bean 0

时间:2023-11-14 17:22:19浏览次数:48  
标签:required xxx 点击 bean 报错 constructor Parameter

Parameter 0 of constructor in me.zhengjie.modules.system.rest.DictDetailController required a bean of type 'me.zhengjie.modules.system.service.DictDetailService' that could not be found.

1.点击界面左侧的maven管理,再点击root下的生命周期,点击clean(也可以直接控制台运行 mvn clean,一样的效果)
image

2.右键根项目(root),点击重新加载项目。等待加载完再运行就没问题了!!!
image

标签:required,xxx,点击,bean,报错,constructor,Parameter
From: https://www.cnblogs.com/lcaiqin/p/17832088.html

相关文章

  • ASP.net MVC3 报错"未找到视图“Index”或其母版视图,或没有视图引擎支持搜索的位置 "
    https://www.cnblogs.com/allenhua/p/3746578.html注意添加MVC3视图不能直接在View文件下新建视图,而是在控制器的Index右击添加视图,就会在View下面产生一个Product文件夹(包含Index.cshtml)就可以解决这个问题。具体如图:  ......
  • openstack nova 报错
    openstackcomputeservicelistTheserveriscurrentlyunavailable.Pleasetryagainatalatertime.<br/><br/>TheKeystoneserviceistemporarilyunavailable.(HTTP503)(Request-ID:req-776aa6f5-855c-44d9-a133-59bfd3a1eee5)发现配置文件错误vi/et......
  • vue3 AntV-X6 引入插件报错
    vue3AntV-X6引入插件报错:UncaughtTypeError:Cannotreadpropertiesofundefined(reading'ToolItem')vite引入路径的问题解决就是在引入插件的路径后面加上/lib:import{Keyboard}from'@antv/x6-plugin-keyboard/lib'直接写 import{Keyboard}from'@antv/......
  • GEE错误——XXX is not a function,如何解决这个问题?
    错误:这里的时错误原始的代码链接:https://code.earthengine.google.com/4bf0975a41e14d0c40e01925c6f3cf2a这里主要的问题时这个单一影像不存在:ImageCollection(Error)ImageCollection.load:ImageCollectionasset'LANDSAT/LC08/C01/T1_SR/LC08_221077_20170411'notfound(does......
  • WSL2报错:nvidia-smi Command ‘nvidia-smi‘ not found, but can be installed with:
    找了很多方法在社区找了很多方法,结果在b站评论区找到了一个方法给解决了原本一开始有人说是驱动版本问题我nvcc-V是ok的,但是nvidia-smi一直报错,Command‘nvidia-smi’notfound,butcanbeinstalledwith:解决cp/usr/lib/wsl/lib/nvidia-smi/usr/bin/nvidia-smichmodogu+......
  • VS2017 fail: An XML declaration with an encoding is required for all non-UTF8 do
    VS2017打开一个别人的项目,报错无法打开,提示:AnXMLdeclarationwithanencodingisrequiredforallnon-UTF8documents研究一番,没有找到直接原因。换个思路,是不是IDE版本问题?检查一下项目文件,IDE版本是:VisualStudioVersion=17.5.33414.496这个是VS2022的版本。于是下载安装V......
  • Ubuntu18.04 打开终端报错: ERROR: ld.so: object ‘xxx.so‘ from LD_PRELOAD cannot
    1、问题现象在文件界面打开终端的时候,突然发现开头有一堆报错ERROR:ld.so:object'./envlib.so'fromLD_PRELOADcannotbepreloaded(cannotopensharedobjectfile):ignored.ERROR:ld.so:object'./libharfbuzz.so.0'fromLD_PRELOADcannotbepreloaded(cannotope......
  • selenium报错result.webdriverValue.value
    1.示例代码fromseleniumimportwebdriverdriver=webdriver.Chrome()driver.get('http://124.223.30.31:xxx/forum.php')driver.find_element('id','ls_username').send_keys('admin')端口我匿了这个代码是没有问题的,任意其他代码在当前的环境下都是会出现这个错......
  • electron 打包报错
     下载链接:https://npm.taobao.org/mirrors/electron/ ......
  • ubuntu:python:编译安装过程中的报错(python 3.12/ubuntu 23.10)
    一,参考文档:https://devguide.python.org/getting-started/setup-building/#install-dependencies主要是补充python所需依赖的开发库,如果这些库未安装,则在安装python的过程中就会报出下面所列的错误,安装依赖库的命令:ubuntu如下:sudoapt-getinstallbuild-essentialgdbl......