public Book updateBook(Book book) Book existingBook = getBookById(book.getId()); existingBook.setTitle(book.getTitle()); existingBook.setAuthor(book.getAuthor()); return bookRepository.save(existingBook);
Run the application using your IDE or by executing the following command in your terminal: spring boot in action cracked