learn-katacoda
learn-katacoda copied to clipboard
FruitRepository must contain the method findById
Although the FruitRepository class extends from CrudRepository, it must still contain the following methods:
public interface FruitRepository extends CrudRepository<Fruit, Integer> {
Optional<Fruit> findById(int id);
void deleteById(int id);
boolean existsById(int id);
}
Thanks @kotlincook ! Will work on that, or would you mind sending a PR? :)
This was a Spring version update issue which has been fixed in the latest Spring courses. Except Spring Messaging and Spring Monitoring (which are in-progress), all other Spring courses should be working fine now. @kotlincook could you pls re-run the course you hit this in and confirm if the issue is resolved?