The difference between slf4j and logback. Slf4j (Simple Logging Facade for Java) is a log facade of Java that implements some common apis for the logging framework. Logback is the […]
Besides define Spring beans in configuration file, Spring also provide some java annotation interface for you to make Spring bean declaration simple and easy. These interfaces are also called stereotype […]
Spring framework support internationalization. With this function, you can display text message in different languages to different locale request user. For example. display English text to US user and Chinese text to china user. This article will show you how to achieve this in Spring.
Spring event architecture make event publish and receive so easy. You can just configure event publisher and listener object as Spring beans in application context xml file. And then use […]
When your Spring project becomes bigger and bigger, the Spring bean configuration file may become very large. So you have to split it to several sub bean configuration file, each […]
Spring FactoryBean is a special beans in spring framework. It can be used as a bean factory to create other Spring managed beans. You may be already familiar with built-in […]
This example will show you how to use constructor injection to autowire spring bean as another bean’s constructor parameters.
Spring framework provide three methods for you to customize bean behavior after bean initialization and before destruction. Of course all the methods are invoked by spring bean factory. This article […]
When your Spring application startup, you may sometimes encounter such exceptions. org.springframework.beans.factory.BeanDefinitionStoreException. And the error message maybe like below. Failed to read candidate component class: file nested exception is org.springframework.core.NestedIOException: […]
Spring IDE is a useful graphical development tool. It can make Spring application development easy. This article will show you how to install it as a Eclipse plugin.