by Buddhi | Apr 6, 2022 | Java, Spring Boot
Update database with Fluent API approach Comments Written by public Book book(Long bookId, Book book) { return bookRepository.findById(bookId). map(foundBook -> { foundBook.setName(book.getName()); foundBook.setDescription(book.getDescription());...
by Buddhi | Aug 5, 2018 | Spring, Spring Boot
Dependency Injection Summary Comments Written by Buddhi Summary of dependency injection in Spring Boot. All the necessary dependencies are handed over to the object by spring. It frees the object from resolving the dependencies. It greatly simplifies the code and...
by Buddhi | May 1, 2018 | Spring, Spring Boot
Spring Annotations and Component Scanning Comments Written by Best practices for defining components and scanning them Annotate the class by including the exact place where to scan for components with @ComponentScan({“com.app.service”,”...