Difference between @Mock, @MockBean and Mockito.mock()
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 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…
In Spring Boot, you can configure the server port by setting the server.port property in the application.properties or application.yml file. 1. Application Properties and YAML file Here’s an example of…
In this tutorial, We will see how autowiring works in spring and this is also one of most common interview questions in spring framework. In Spring, All beans are managed…
In this tutorial, we will learn on spring data with PagingAndSortingRepository interface. PagingAndSortingRepository is another Spring Data repository interface, which builds upon the CrudRepository interface and adds support for pagination…
Liferay CAS Integration CAS Introdution: CAS is an enterprise SSO solution for web or enterprise applications for single sign-in access. . User tries to access application to login and then…
In this tutorial, we will learn on Spring Data with CrudRepository Interface. CrudRepository interface in a Spring application: User Entity: Create UserRepository class that should me marked with @Repository Annotation:…
Spring is a popular Java framework for building web applications and provides a wide range of annotations for various purposes @Autowired: This annotation is used to enable autowiring of dependencies…