Annotation Based Bean Wiring @Autowired in Spring framework


Since Spring 2.5, one of the most interesting ways of wiring beans in Spring has been to use annotations to automatically wire bean properties. Auto wiring with annotations isn’t much different than using the autowire attribute in XML. But it does allow for more fine-grained auto wiring, where you can selectively annotate certain properties for […]

Spring with Apache Velocity


Introduction Spring is an open source framework, created by Rod Johnson. We can develop many kinds of applications using Springwhich includes basic java programs and enterprise applications. Any Java application can benefit from Spring in terms of simplicity, testability, and loose coupling. Spring supports integration with Struts, WebWork, Apache velocity , Hibernate, JDO, TopLink, EJB, […]

Introduction to Spring Converters and Formatters


Introduction In this article, we will provide introductory details on Spring Converters and Formatters. Converter components are used for converting one type to another type and also to provide a cleaner separation by forcing to place all such conversion related code in one single place. Spring already supports built-in converters for the commonly used types […]

Extending View Resolver and Chaining View Resolvers in Spring MVC


In Spring MVC view resolvers help the Dispatcher Servlet in identifying the views which has to be rendered in response for a request. There are lot view resolvers available in Spring framework. For example: InternalResourceViewResolver, ResourceBundleViewResolver, XmlViewResolver etc. If needed, the programmers can have custom view resolvers by extending existing view resolver implementation or implementing […]

Spring MVC – Setter Injection Example


Setter Injection Spring IOC container will inject the dependencies using the setter bean class.All the dependencies are declared as the instance variables of the bean class.Here we show a simple Book details example of Setter-Injection. Spring Framework Articles also read: Spring Articles Spring Books Introduction to Spring’s Aspect Oriented Programming(AOP) Life Cycle Management of a […]

Spring MVC – Constructor Injection Example


Constructor Injection Spring IOC will inject the dependencies using the constructor.All the dependencies are declared in the constructor. Here we show a simple student details example of Constructor-Injection. We have already published another article on the Spring Constructor Injection. This example provides more details. Spring Framework Articles also read: Spring Articles Spring Books Introduction to […]

Spring MVC – DispatcherServlet Example


DispatcherServlet Configuration DispatcherServlet : In Spring’s web MVC framework the mechanism of dispatching the request to the appropriate controllers is achieved by configuring the DispatcherServlet class. DispatcherServlet is the class which manages the entire request handling process.Like a normal servlet DispatcherServlet also needs to be configured in the web deployement Descriptor(web.xml).By default DispatcherServlet will look […]

What is Spring Web Flow (SWF)?


Spring Web Flow is a framework developed on top on Spring Web MVC that aims in capturing the flow of an application so that it is possible for the application developers to design web application based on use-cases in the form of flows. Organization of multiple flow can be easily managed through the definition of […]

Sending and Receiving messages using Spring’s AMQP


Introduction The messaging standards that an application uses for communication varies and Advanced Message Queuing Protocol (ADQP) aims in providing standards with respect to messaging communication like the format of the message, various contracts to be implied, etc. Note that ADQP is just a protocol and it is not tied with any specific technology or […]

How to develop Spring Framework MVC application in NetBeans?


This is a step-by-step guide on how to develop a Spring Framework MVC application from scratch using NetBeans.Spring is basically a technology committed to enabling you to build applications using Plain Old Java Objects (POJOs). It enables you to develop components as POJOs containing only our business logic, while the framework takes care of the […]

Please support the site
By clicking any of these buttons you help our site to get better