Avatar
0
azqhdyt4pggs7smw Beginner
EzyRepository annotation could not instantiate repo class.
I added ezydata-jpa to my EzyFox Server and followed EzyChat 003: Connect to database tutorial on your youtube channel. The only difference is that I automated the config process with ezyfox-boot-autoconfigure. However this exception poped
bean (xxxRepository, xxxRepository) implementation not found, uncompleted classes: [class com.xxx.service.xxxServiceImpl] 
when I try to EzyAutoBind repository to a Service Singleton class

I'm using MySql by the way

  • Answer
Remain: 5
2 Answers
Avatar
tvd12 Beginner
tvd12 Beginner
The Best Answer
Could you put a break point on your IDE at this line and see the root cause? https://github.com/youngmonkeys/ezyfox/blob/master/ezyfox-bean/src/main/java/com/tvd12/ezyfox/bean/EzyBeanAutoConfig.java#L17

Example:

Screenshot 2024-04-21 at 20.41.29.png

If you can not fix the issue, please contact us via discord: https://discord.gg/vJHKqMTv

  • 0
  • Reply
Thank you but I think it's caused by my own mistake.  –  azqhdyt4pggs7smw 1713710602000
Avatar
I tried to configure the whole db context and jpa package scanning explicitly and turns out there was a incorrect declaration in my repo interface. The exception is hidden when I tried to automate the config process
  • 0
  • Reply
Thank you  –  tvd12 1713714590000