Spring framework was initialized by Rod Johnson and until now, it is so popular that every Java developer should know.

Spring Framework

In this tutorial, Huong Dan Java will guide you all step by step, with basic knowledge about the Spring framework. Then you can work on it.

The first step, you all need to take a look: that is the concepts of Dependency Injection and IoC. Spring framework is using that kinds of concept to implement its framework.

After that, I have a tutorial that describes how we can start working with Spring framework via Spring framework hello world. You should read it to understand what Spring does.

Now, you can learn more about the Spring framework.

Initialize bean

You will know how we can initialize Java objects in the Spring container using an XML file.

In this tutorial, I will guide you all about bean inheritance in Spring.

In this tutorial, I will talk about the XML configuration file in Spring, and how we can declare the namespaces to use the XML tag in Spring.

We also can use @Configuration annotation to initialize a bean in the Spring container.

You can also use Spring’s auto component scan mechanism to initialize the bean in its container.

In this tutorial, I will guide you all on how to auto-component scan in Spring using @ComponentScan annotation.

In this tutorial, I introduce about the @Conditional annotation in Spring.

Inject bean

In this tutorial, I will guide you all on how to inject this object into another object in Spring using the XML file.

In this tutorial, I will talk more detail about Constructor Injection in Spring using an XML file.

I will show you all how we can declare overloaded constructors in Spring.

In this tutorial, I will talk more detail about Setter Injection in Spring using an XML file.

You will know how to put this Java object into another Java object automatically.

In this tutorial, I guide you all on how to autowire bean using @Autowired annotation.

In this tutorial, I will read the code of AutowiredAnnotationBeanPostProcessor class to understand how it works.

In this tutorial, I’m going to show you how to use the @Qualifier annotation to specify the bean needed for autowire when we have multiple beans of the same dependency in Spring’s container.

Working with the properties file

The PropertyPlaceholderConfigurer is one of the objects that help Spring read its properties files.

In this tutorial, I will show you how to read the properties files in Spring using the context namespace.

In this tutorial, I will show you how to read properties files in Spring using the util namespace.

In this tutorial, I will show you how to read properties files in Spring using the @PropertySource annotation.

In this tutorial, I will show you how we can use properties in the Spring configuration file.

In this tutorial, I will show you how we can use properties in Spring with @Value annotation.

Database

In this tutorial, I introduce you to JDBC transaction management in Spring.

In this tutorial, I will guide you all on how to configure transaction management with @EnableTransactionManagement annotation in the Spring application.

In this tutorial, I will show you how to use JPA in the Spring framework.

In this tutorial, I will show you how to use Hibernate in the Spring framework.

Others

You will know the difference between BeanFactory and ApplicationContext in Spring, though both of these objects contain information about Spring’s container.

To call ApplicationContext you will need to use ApplicationContextAware, to name a Bean you will use BeanNameAware.

Add Comment