JavaBeat

  • Home
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Privacy

@Import Annotation in Spring Framework

October 28, 2013 by Krishna Srinivasan Leave a Comment

In my previous article I have explained about the JavaConfig in Spring 3.0. It is a new way of configuring the bean definitions without using the traditional XML files. Also I have listed the annotations defined as part of JavaConfig approach. If you are beginner in spring framework, we have huge collection of spring tutorials […]

Filed Under: Spring Framework Tagged With: Spring Annotations

@Configuration Annotation in Spring 3.0

October 27, 2013 by Krishna Srinivasan Leave a Comment

Spring 3.0 has introduced new way for configuring the spring beans. In fact this option was maintained by spring framework separately as JavaConfig project. Later this project is merged to the spring core framework and all the features are directly accessible from the spring core. If you are beginner in spring framework, we have huge collection […]

Filed Under: Spring Framework Tagged With: Spring Annotations

Difference Between @Resource, @Autowired and @Inject in Spring Injection

October 26, 2013 by Krishna Srinivasan Leave a Comment

It is very common confusion among the spring developers that what is the real difference between these three (@Resource, @Autowired and @Inject) annotations used for injecting the objects. I have come across this question from our readers so dedicated this post for explaining the main difference between these three annotations. Infact, these three work very […]

Filed Under: Spring Framework Tagged With: Spring Boot

Configure Multiple View Resolvers in Spring MVC

October 26, 2013 by Krishna Srinivasan Leave a Comment

In my previous tutorial I have explined about content negotiation startegy introduced in Spring MVC 3.2. This tutorial focuses on how to configure multiple view resolvers for your spring web application. We have different view resolvers for different purposes : XmlViewResolver, ResourceBundleViewResolver, and InternalResourceViewResolver. XmlViewResolver: An implementation of ViewResolver that accepts a configuration file written […]

Filed Under: Spring Framework Tagged With: Spring Framework, Spring MVC

How to use Spring HATEOAS LinkBuilder API with Spring REST?

October 26, 2013 by Krishna Srinivasan Leave a Comment

Hypermedia as the Engine of Application State (HATEOAS) is a constraint for the REST architecture. If you are not familiar with the REST web services, REST is services exposed using an URI that is shared to the clients. A client can directly access that given URI to get the response which is mostly a JSON […]

Filed Under: Spring Framework Tagged With: Spring HATEOAS, Spring REST

Flash Attributes in Spring MVC 3.1

October 25, 2013 by Krishna Srinivasan Leave a Comment

Spring 3.1 has added new feature called flash attributes. This is one of the most wanted feature from the spring developers. This solves the problem occured when POST/Redirect/Get pattern in the request. When user makes a request to the server via POST method, once the process is completed, the requested resourced will be served through […]

Filed Under: Spring Framework Tagged With: Spring MVC

Content Negotiation in Spring MVC 3.2

October 23, 2013 by Krishna Srinivasan Leave a Comment

In this tutorial I will explain about the Content Negotiation in Spring MVC 3.2. This concept is already in the spring framework, but it is enhanced with easy and efficient resolution of views. Prior to Spring 3.2, @ResponseBody used “AcceptHeader” for identifying the response type. This tutorial will helps you to understand the concept behind the […]

Filed Under: Spring Framework Tagged With: Spring Framework, Spring MVC

@ModelAttribute in Spring MVC

October 22, 2013 by Krishna Srinivasan Leave a Comment

In this tutorial I will explain one of the most important annotation used in Spring MVC @ModelAttribute. This annotation can be used as the method arguments or before the method declaration. The primary objective of this annotation to bind the request parameters or form fields to an model object. The model object can be formed […]

Filed Under: Spring Framework Tagged With: Spring Framework, Spring MVC

@RequestHeader in Spring MVC

October 22, 2013 by Krishna Srinivasan Leave a Comment

In this tutorial, I would go through an example for how to use @RequestHeader annotation. Every request has a request header part with the set of details sent to the web server. Typically request headers contains the details about browser version, language, what it will accept from the server, etc. are sent to inform the […]

Filed Under: Spring Framework Tagged With: Spring Framework, Spring MVC

Exception Handling With @ControllerAdvice in Spring 3.2

October 14, 2013 by Krishna Srinivasan Leave a Comment

In my previous article I have explained one of the new feature Spring MVC Test Fraemwork which is introduced as part of the Spring Framework 3.2 release. This tutorial explains another good feature for exception handling on Spring MVC web application. Spring 3.2 introduces new annotation @ControllerAdvice annotation used for defining the exception handler with specific exception […]

Filed Under: Spring Framework Tagged With: Spring Framework

  • « Previous Page
  • 1
  • …
  • 10
  • 11
  • 12
  • 13
  • 14
  • …
  • 24
  • Next Page »

Follow Us

  • Facebook
  • Pinterest
JavaBeat

FEATURED TUTORIALS

Servlet Life Cycle: Explanation

Servlet Life Cycle: Explanation

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

The Java 6.0 Compiler API

Copyright © by JavaBeat · All rights reserved

This website uses cookies to ensure you get the best experience on our website. Learn more.