Rookie learn SPRING--SPRINGIOC container based on three configurations of comparison

Source: Internet
Author: User

I. Overview
for the purpose of implementing the bean information definition, it provides three options based on XML, annotation-based, and Java-based classes. The following summarizes the differences in the three configuration methods.

Two, bean different configuration mode comparison.


Three, the application of different configuration of the bean applications.


Iv. Summary.
in general, we apply the XML configuration DataSource, Sessionfactory and other resources of the bean, in the XML with the AOP, the context namespace for the theme configuration. The beans developed in all other projects are configured in the form of annotations. This is the use of "xml+ configuration-based" configuration, rarely based on the Java class configuration.
Spring not only provides three implementations of the scheme but also allows for a number of free combinations, allowing three ways to complement each other in the end to achieve the same essence.

Rookie learn SPRING--SPRINGIOC container based on three configurations of comparison

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.