Home » Tag Archives: Spring (page 35)

Tag Archives: Spring

Brace yourselves – Spring Framework 4.0 is coming!

spring-interview-questions-answers

A few days ago SpringSource announced that the 4.0 version of the popular Spring framework is on the road. The next iteration will be Spring Framework 4.0! As SpringSource states, the focus of the upcoming version is on “emerging enterprise themes in 2013 and beyond”: Support for Java SE 8 Spring applications Configuring and implementing Spring-style applications using Groovy 2 ...

Read More »

Testing REST with multiple MIME types

spring-interview-questions-answers

1. Overview This article will focus on testing a RESTful Service with multiple Media Types/representations. This is the tenth of a series of articles about setting up a secure RESTful Web Service using Spring and Spring Security with Java based configuration.             The REST with Spring series: Part 1 – Bootstrapping a web application with ...

Read More »

Spring Property Placeholder Configurer – A few not so obvious options

spring-interview-questions-answers

Spring’s PropertySourcesPlaceholderConfigurer is used for externalizing properties from the Spring bean definitions defined in XML or using Java Config. There are a few options that PlaceholderConfigurer supports that are not obvious from the documentation but are interesting and could be useful. To start with, an example from Spring’s documentation, consider a properties file with information to configure a datasource:   ...

Read More »

ETags for REST with Spring

spring-interview-questions-answers

1. Overview This article will focus on ETags – the Spring support, integration testing of the RESTful API, and consumption scenarios with curl. This is the ninth of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration.             The REST with ...

Read More »

@Cacheable overhead in Spring

spring-interview-questions-answers

Spring 3.1 introduced great caching abstraction layer. Finally we can abandon all home-grown aspects, decorators and code polluting our business logic related to caching.                   Since then we can simply annotate heavyweight methods and let Spring and AOP machinery do the work: @Cacheable("books") public Book findBook(ISBN isbn) {...} "books" is a cache ...

Read More »

Spring MVC – Customizing RequestMappingHandlerMapping

spring-interview-questions-answers

When Spring MVC is configured using <mvc:annotation-driven/> in an xml bean definition file, internally a component called RequestMappingHandlerMapping gets registered with Spring MVC. This component or in general a HandlerMapping component is responsible for routing request URI’s to handlers which are the controller methods annotated with @RequestMapping annotation.               There are two specific configurations ...

Read More »

A Grails plugin to bridge Spring Security and Shiro

grails-logo

I started using Spring Security in 2007 when I was tasked with adding security to a Spring/Hibernate application at the company I was working for. There were a few options to choose from, none of them particularly friendly to work with, and we chose Acegi Security because it was the most popular option for Spring applications. My experience was like ...

Read More »

Camel 2.11 – Camel web applications without Spring

apache-camel-logo

As I write this we have just added a new component to the upcoming Apache Camel 2.11, that allow to run web applications with Camel without having to rely on Spring Framework to boostrap Camel. Or any other 3rd party frameworks for that matter. A bit ashamed to say that in the year 2013 we are a bit late to ...

Read More »

Spring Dynamic Language Support with Groovy

spring-interview-questions-answers

Groovy is a dynamic and object-oriented programming language running on JVM. It uses a syntax like Java, can be embedded in Java and is compiled to byte-code. Java code can be called from Groovy, and vice versa. Some of Groovy features are Meta and Functional programming, Dynamic typing (with the def keyword), Closures, GroovyBeans, Groovlets, integration with Bean Scripting Framework(BSF), ...

Read More »

Testing Spring Data MongoDB Applications with NoSQLUnit

nosqlunit-logo

Spring Data MongoDB is the project within Spring Data project which provides an extension to the Spring programming model for writing applications that uses MongoDB as database. To write tests using NoSQLUnit for Spring Data MongoDB applications, you do need nothing special apart from considering that Spring Data MongoDB uses a special property called _class for storing type information alongside ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.