第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

運(yùn)行報(bào)錯(cuò)Field girlRepository in com.imooc.controller.GirlController required a bean named 'entityManagerFactory' that could not be found.請問是怎么回事?

***************************

APPLICATION FAILED TO START

***************************


Description:


Field girlRepository in com.imooc.controller.GirlController required a bean named 'entityManagerFactory' that could not be found.



Action:


Consider defining a bean named 'entityManagerFactory' in your configuration.



Process finished with exit code 1


正在回答

6 回答

https://blog.csdn.net/Julycaka/article/details/80622754?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.control

0 回復(fù) 有任何疑惑可以回復(fù)我~

將girlRepository.findOne(id); 改為 girlRepository.findById(id).orElse(null); 或 girlRepository.findById(id).get();


0 回復(fù) 有任何疑惑可以回復(fù)我~

https://stackoverflow.com/questions/42182426/spring-boot-repository-field-required-a-bean-named-entitymanagerfactory-that直接看這個(gè)解答吧,解決了

1 回復(fù) 有任何疑惑可以回復(fù)我~

沒有呀,我這是直接用的師兄代碼都不行

0 回復(fù) 有任何疑惑可以回復(fù)我~

解決了嗎兄弟

0 回復(fù) 有任何疑惑可以回復(fù)我~

是不是girl實(shí)體少了@entity注解

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

運(yùn)行報(bào)錯(cuò)Field girlRepository in com.imooc.controller.GirlController required a bean named 'entityManagerFactory' that could not be found.請問是怎么回事?

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號