bean of type 'com.example.demo.GirlRepository' that could not be found.

Description:


Field girlRepository in com.example.demo.GirlController required a bean of type 'com.example.demo.GirlRepository' that could not be found.


Action:


Consider defining a bean of type 'com.example.demo.GirlRepository' in your configuration.

以下是我的代码

https://img.mukewang.com/5ad1adeb0001985609820579.jpg

https://img1.mukewang.com/5ad1adeb00014d8210600468.jpg

https://img2.mukewang.com/5ad1ae2a00015e0b09120436.jpg

我还加上了 ComponentScan标签,还是不行,网上的办法搜了个遍,求大神帮忙啊,这是怎么回事,之前创建表的时候我没建表也没有报错,是jpa的问题吗?


qq_透光的水晶眼_0
浏览 1609回答 1
1回答

慕瓜9220888

JEGKMCWZCKMBQSFKRIETZLQUQNDGYUGOPFPFVUJFICCAOVMFBDANANFUNPPJPSILSBTFCPCPLJIKMTGKGSGCUNDYVZYTRUPJPMIRZLHCPJWOTYRWNADGDUPSIUNDTNEMITZMFMRJSKZIFZSFDBHZRKEURNMHACPSAKKLOJQXHJZDEDZBEBEEMKJVNQXDDEWYIUROLYIDLAQGCYHVDFBJDAMZZVEVRLVPAFNJIOREEYWMBUDWJQAKIIEAEHNUITSKGJDQUNYRWSBELINCNQPCNKHJUWYXKWPPASODCPJUUXWYTFPILYZHDFAASSPPRQJTGTGXKIZJLVJTEGLWPXKXURJBDFRLUANBCUWNDKJWMEMOUFMUXHRPVNXXQADRJVEBOUHQXAYYUOUEPHWLXUQDXOQSHZGTGTJUXMUOUXUQOHGDQMWAOUQVEROBLZKEKPZGRXNOQTLYWDSVDSBKGDQUHSZYEHHRUYNHDYSLHORMBDMZCBOVTMIJWSFCLNPSRSWWKQYAZTANDDIDIRTQZCKKYUDILPVZKMLGCCFZZNCOQLFIFCAPEUGJFCFZZRUCPCJWDBNJYORJIKZRDPHHRVSQPBQZADAGOAJOVFLOVXGLJJJSTXLHQCIVQXNSDMYEILQWRNSEZTWSMACAMFSFCHZTIAXANDNRGKGTGGJEYAWSBFSLQBDVLELYBWVGXTDHEZQVGJLOROBNFXDFYROFGYQTMZCZMHXQCENSPTUFUXSMCMJRPHTPCPVNDEXJRURURIIQCOHLOUYFHJOBELYHFNPVFIVGKSUNZCFIZNBUPDDHUNUDZYEYZMXTYQCELKOGIQIXQJPMGAIKJFCFISMQFOZWZWAJRTMELHCJNFNUJWJQGECIKMFICIEQNFHBHKOHPBNZCLYCZOYDFFGDQJOQVHZGTQNXNJRYHOLSKQIEXUAAJLHNXYWJTGFNTOLYIFDOJVUHKSCHFAVAAQJONFKJFSLKXAVXPBYLRATPBNJDXBFSAJFXKQUXGXAUWJEMSTZEACFMZSQFPCYBOELRJBXFCVAOKCRBGKNANMYLFYMAPMQCSODHNUXAETSIBBBYQLHQSFVFCNLXMVOLSMCXZLXKTYFLGYACWZWCDODMOROZKEDFUTWCNSHMOBXKLYFNLDBHNKXHGOALKAWPTTVIRDZDZMMVHZEYJDXOWYKTGMJBHZRNPTXUNWXNDLMBYPXCEKKXUBOBJLGFFRNKPOGCKXXNUVGSYAHKXADSVXTWJMGLNXGYLIRCNSKWYBOFOUTIMHICPPFHZSUKKXGJEOJMVSLBMMCEMTGTGVTSVQAXACDCHGLAKHDYLGMEROOIGRVAZPJWSIGPUQDOLMDBKVZJGTPMQZYQKXKAJOQSRRRJJMKQSXQUQCSDPWHBOUYHOWYEHURHWEQWOYUEUPKNDMWZWSAOXSGGWTQIQWEQTFFPWUMIOHKHEHIOXSFLILITWBDWGYSECUGCVXUKDFKNAXHNKWXQVRKXUEYTYNPMCWWIOAGWKLYFALSRQNADDMAZOQADNKKSKMIVYLSMKPLXDISWWCLWORHURPACRAXTAAVMFHWWFVPBJLXJDQKMLNDCIRVBUCOZKMPVZCFGVXANWJGBZINZMPMZ

慕后端0728355

去把成品代码下载了,github上有
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java
MySQL