Spring Boot - Caching
Identify the error in the following code using
@Cacheable:@Cacheable(cacheNames = "items")
public Item getItem(Long id) {
return itemRepository.findById(id).get();
}
// Usage
getItem(null);