Skip to content
Advertisement

How to solve this Problem: Error creating bean?

I am getting the following error and I am getting frustrated btw. Please help.

This is the Error I am getting:

JavaScript

This is my User Entity:

JavaScript

This is my UserRepository:

JavaScript

And this is my UserController:

JavaScript

How can I solve this problem? Let me know if you need more.

Advertisement

Answer

You should remove prefix: “users_” for fields, because in spring-data underscore symbol is used for making link on nested entities in repository method names. For example see: Spring data, find by property of a nested object

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement