Category: Spring Framework
Spring Custom @Required styled annotation Example
In this tutorial we are creating and configuring our own custom spring @Required annotation type. This is as simple as creating the annotation, enabling the required bean dependency checking and registering the custom annotation...
Dependency Checking with Spring @Required Annotation
This tutorial explains how to use the spring @Required annotation. We can use this annotation to do some dependency checking at startup rather than at runtime. This makes it easier and quicker to detect...
Spring Annotation Configuration Example
This tutorial shows spring annotation configuration. Starting from Spring version 2.5, it is possible to configure bean dependency injection using annotations. So instead of using XML to describe a bean wiring, we can now...
Spring c-namespace XML Configuration Shortcut
This tutorial shows you how to use the spring c-namespace. In the previous tutorial we saw how to use the p-namespace to configure bean definition. The c-namespace allows you to configure the constructor arguments...
Spring p-namespace XML Configuration Shortcut
This example shows you how to use the spring p-namespace XML shortcut. The p-namespace is created to simplify the XML configuration. This namespace enables you to use the bean element’s attributes, instead of <property/>...
Import Multiple Spring XML Configuration Files
This tutorial shows you how to import multiple spring xml configuration files. When your application is composed of multiple layers it is recommended that each XML Configuration file represents a logical layer or module...
Spring XML Based Configuration Example
This tutorial shows you how to use Spring XML Based Configuration. We create a simple service called CoffeeMachine which will display a simple message to the console. We configure our application using XML Based...
Spring WS Adding Detail to SoapFault Exception Handling
In this tutorial we show you how to add detail information to your exceptions. Spring WS enables easy translation of errors penetrated from business logic. Exceptions are automatically thrown up the chain with the...
Spring WS Intercept Request Response Soap Messages
In the previous tutorial we saw how to produce and consume a Spring WS Soap Service. This time, we show you how to use Spring Ws Endpoint Interceptors. These endpoint interceptors can be used...