Category: Spring core

Spring @DependsOn

Spring allow you specified the bean create order by using @DependsOn or depends-on attribute in xml.

Read More

Bootstrap your ApplicationContext

These are the common used applicationContext to bootstrapping your apps. Let’s say your applicationContext.xml are place under this folder [Project]/src/main/resources/.

Read More

MessageSource Configuration

The following example demonstrate spring messagesource to let you configure the i18n. Configuration metadata: XML-,  Java-based Result Congratulations guest! You have […]

Read More

PropertyPlaceholder Configuration

The following example demonstrate spring propertyplaceholder. With this configuration, spring allow you to externalize the value into properties files. Configuration metadata: […]

Read More

Spring IO Platform

Overview In general, Spring IO Platform is a single maven dependency configuration that include a list of predefine library dependencies […]

Read More

Querying with JdbcTemplate

This tutorial is about the JdbcTemplate querying type. Generally, there are 3 types of query, which is SimpleTypes, Generic Maps and Domain Objects.

Read More

Spring embeded database

Example 1, using H2 <jdbc:embeded-database id=”datasource” type=”H2″> <jdbc:script location=”classpath:jdbc/schema.sql”/> <jdbc:script location=”classpath:jdbc/test-data.sql”/> </jdbc:embeded> Example 2, <bean id=”dataSource” class=”org.springframework.jdbc.datasource.embeddedDatabaseFactoryBean”> <property name=”databasePopulator” ref=”populator”/> […]

Read More

JPA – UntypeResult

This tutorial demonstrate using JPA2.0 with JQPL query with untype result and hibernate as vendor provider. This kind of query specifically […]

Read More