Spring rmi example. Spring boot remoting example using Spring RMI and Hessian. We learned about spring remoting vs rest. Spring RMI annotation example.
Spring Bean Eager vs Lazy Initialization Configurations
By default, Spring “application context” eagerly creates and initializes all ‘singleton scoped‘ beans during application startup itself. It helps in detecting the bean configuration issues at early stage, in most of the cases. But sometimes, you may need to mark some or all beans to be lazy initialized due to different project requirements. Spring provides […]
Spring Bean Java Config Example
Learn to create spring beans using pure java configuration using annotations for any standalone application. We will learn to create it with and without scanning of component annotations and using @Bean annotations. Table of contents Create bean with component scanning enabled Create bean using @Bean annotation Create bean container with component scanning enabled Creating beans […]
Spring bean example – Spring 5 XML Configuration
In this spring 5 XML configuration example, we will quickly go through the steps to create an spring application context in any standalone application. We will use maven to manage the spring dependencies and eclipse to build and run the code. 1. Spring 5 maven dependencies To create spring application context, which is capable of […]
Guide to spring bean scopes
In Spring framework, you can create beans in 6 inbuilt scopes and you can also define your custom scope as well. Out of these six scopes, four are available only if you use a web-aware ApplicationContext. singleton and prototype scopes are available in any type of IOC containers.