Computer Science, asked by amartyasrimani747, 10 months ago

The method findone(long) is undefined for the type productrepository

Answers

Answered by angel224887
0

Answer:

The findOne is used to find entities based on ID not on any random field of your entity. As the exception suggests, you are passing the user name to the findOne method. But as per the method signature in the Spring docs, the method findOne expects the ID which is an Integer as its argument.

Similar questions