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, basic knowledge about 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 kind of concepts 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 Spring framework.


Initialize bean

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

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

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

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


Inject bean

In this tutorial, I will talk more detail about Constructor Injection in Spring using 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 XML file.

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

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

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

In this tutorial, I will read the code of AutowiredAnnotationBeanPostProcessor class to understand about 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 properties file

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

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

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.

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

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


Database

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.

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


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.

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

Spring Framework
Đánh giá bài viết
Chia sẽ bài viết này ...Share on Facebook
Facebook
11Share on Google+
Google+
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Add Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.