This tutorial explains simple Hello World Example for start learning Spring MVC. We have published several tutorials on advanced concepts using spring framework, including spring mvc examples. However, this post is just re-post for the beginners just want to write a bare minimum code for setting up the spring mvc project. If you have any …
Spring MVC
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 – 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 …