0
Q:

spring boot redis example

List<Student> students = new ArrayList<>();
studentRepository.findAll().forEach(students::add);
0
Student engStudent = new Student(
  "Eng2015001", "John Doe", Student.Gender.MALE, 1);
Student medStudent = new Student(
  "Med2015001", "Gareth Houston", Student.Gender.MALE, 2);
studentRepository.save(engStudent);
studentRepository.save(medStudent);
0
studentRepository.deleteById(student.getId());
0
Student retrievedStudent = 
  studentRepository.findById("Eng2015001").get();
0

New to Communities?

Join the community