Spring 3 and JSR-330 @Inject and @Named example
Since Spring 3.0, Spring supports for the standard JSR 330: Dependency Injection for Java. In Spring 3 application, you can uses standard: 1 - @Inject instead of Spring’s @Autowired to…
Favourite tutorials for developers
Since Spring 3.0, Spring supports for the standard JSR 330: Dependency Injection for Java. In Spring 3 application, you can uses standard: 1 - @Inject instead of Spring’s @Autowired to…
Normally, you will split a large Spring XML bean files into multiple small files, group by module or category, to make things more maintainable and modular. In Spring3 JavaConfig, the…
Since Spring 3, JavaConfig features are included in core Spring module, it allow developer to move bean definition and Spring configuration out of XML file into Java class. But, you…
This tutorial shows you how to create a simple hello world example in Spring 3.0. Technologies used in this article :Spring 3.0.5.RELEASE, Maven 3.0.3, Eclipse 3.6, JDK 1.6.0.13 . In…
In this tutorial, we will show you how to set a default value for @Value . To set a default value in Spring expression, use Elvis operator : #{expression?:default value}…
In Spring, you can use @PropertySource annotation to externalize your configuration to a properties file. In this tutorial, we will show you how to use @PropertySource to read a properties…
The Spring framework , created by Rod Johnson, is an extremely powerful Inversion of control(IoC) framework to help decouple your project components’ dependencies. In this series of tutorials, it’s provides…