更新項(xiàng)目以后,新增了許多java類,運(yùn)行application來(lái)啟動(dòng)項(xiàng)目時(shí)報(bào)錯(cuò):文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-559461.html
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.
剛開(kāi)始以為是文件DictDetailService不存在,結(jié)果不是,刪除再導(dǎo)入后也解決不了問(wèn)題。最終靠以下步驟解決:文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-559461.html
-
點(diǎn)擊界面左側(cè)的maven管理,再點(diǎn)擊root下的生命周期,點(diǎn)擊clean(也可以直接控制臺(tái)運(yùn)行 mvn clean,一樣的效果)
-
右鍵根項(xiàng)目(root),點(diǎn)擊重新加載項(xiàng)目。等待加載完再運(yùn)行就沒(méi)問(wèn)題了?。?!
到了這里,關(guān)于【springboot項(xiàng)目運(yùn)行報(bào)錯(cuò)】親測(cè)有效 Parameter 0 of constructor in xxx.xxx.Controller required a bean o的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!