The method findone(long) is undefined for the type productrepository
Answers
Answered by
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
Biology,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
Science,
1 year ago
Science,
1 year ago