Spring + JDBC example
In this tutorial, we will extend last Maven + Spring hello world example by adding JDBC support, to use Spring + JDBC to insert a record into a customer table.
Favourite tutorials for developers
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that support Java without the need to recompile.
In this tutorial, we will extend last Maven + Spring hello world example by adding JDBC support, to use Spring + JDBC to insert a record into a customer table.
Often times, most Spring developers just put the entire deployment details (database details, log file path) in XML bean configuration file. But, in a corporate environment, deployment detail is usually…
Spring example to show you how to inject a “Date” into bean property. In Spring, you can inject a Date via two methods. Factory bean: Declare a dateFormat bean, in…
The ‘MapFactoryBean‘ class provides developer a way to create a concrete Map collection class (HashMap and TreeMap) in Spring’s bean configuration file.
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.…