Java8 Functional Interface
Functional Interface is Single Abstract Method(SAM), so it used to target for a lambda expression or method reference. A functional interface in Java is an interface that has exactly one…
Functional Interface is Single Abstract Method(SAM), so it used to target for a lambda expression or method reference. A functional interface in Java is an interface that has exactly one…
findFirst() and findAny() are methods in the Stream interface in Java that are used to find the first or any element in a stream that matches a given condition. Java8…
In Spring Boot, you can disable specific auto-configuration properties by using the spring.autoconfigure.exclude property. This property can be set in the application.properties or application.yml file, and it takes a comma-separated…
In Spring Boot, you can change the context path of your application by setting the server.servlet.context-path property in the application.properties or application.yml file. Using Application Properties file: For example, if…
In this tutorial, we will see how to run code immediately after spring boot application start. There are cases where we need to run tasks after application started. upgrade step…
In Spring Boot, there are a couple of ways to log SQL statements in order to debug and troubleshoot any issues with the application’s database interactions. Using Application Properties You…
In this post, we will learn about difference between Mock, MockBean and MockIto.mock methods. This will very confusing to the developers and even I also faced some times. Lets go…
In this post, we will see java is pass by value or reference. In Java, method arguments are passed by value. This means that when you pass an argument to…
Inversion of Control Inversion of Control (IoC) is a programming principle that is at the core of the Spring Framework, and it is a design pattern that decouples the creation…
This is most common interview question asked on spring framework. Differences between BeanFactory and ApplicationContext in Spring: BeanFactory is a light-weight container that is used to instantiate, configure, and manage…