Spring SetFactoryBean example
The ‘SetFactoryBean‘ class provides developer a way to create a concrete Set collection (HashSet and TreeSet) in Spring’s bean configuration file.
Favourite tutorials for developers
The ‘SetFactoryBean‘ class provides developer a way to create a concrete Set collection (HashSet and TreeSet) in Spring’s bean configuration file.
The ‘ListFactoryBean‘ class provides developer a way to create a concrete List collection class (ArrayList and LinkedList) in Spring’s bean configuration file.
Spring examples to show you how to inject values into collections type (List, Set, Map, and Properties). 4 major collection types are supported : List – , Set – ,…
In Spring, bean scope is used to decide which type of bean instance should be return from Spring container back to the caller. 5 types of bean scopes supported :…
In Spring framework, whenever a bean is used for only one particular property, it’s advise to declare it as an inner bean. And the inner bean is supported both in…
In Spring, there are three ways to inject value into bean properties: Normal way, Shortcut, “p” schema. Normal way: Inject value within a ‘value’ tag and enclosed with ‘property’ tag.…
In Spring, beans can “access” to each other by specify the bean references in the same or different bean configuration file. If you are referring to a bean in different…
In a large project structure, the Spring’s bean configuration files are located in different folders for easy maintainability and modular. For example, Spring-Common.xml in common folder, Spring-Connection.xml in connection folder,…
The concept of object-oriented is a good design to break your system into a group of reusable objects. However, when system grows larger, especially in Java project, the huge object…
This quick guide example uses Maven to generate a simple Java project structure, and demonstrates how to retrieve Spring bean and prints a “hello world” string. Technologies used in this…