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 | May 12, 2020 | Java, Multithreading, Programming
Thread Communication in Java Comments Written by Interthread communication in Java package org.example; public class ThreadCommunication { private static final int DATA_SIZE = 1000; public static void main(String[] args) { //common channel for producing and...
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”,”...
by Buddhi | Jul 31, 2017 | Algorithms, Data Structures & Algorithms, Uncategorized
Various description of Big O – Time complexity algorithms Comments Written by Understanding the time complexity of Big O and log. O(log N) means time goes up linearly while the n goes up exponentially. So if it takes 1 second to compute 10 elements, it will...