Spring Boot - Caching
What is wrong with this Spring Boot caching code?
@Cacheable("users")
public User getUser(int id) {
return userRepository.findById(id).get();
}
// Missing @EnableCaching annotation in main class