Spring Learning Record (i)

Source: Internet
Author: User

1.import Introduction Profile: <import resource= "Conf/partner/partner-spring.xml" ></import> using relative paths

2.<context:component-scan>

Spring can automatically scan Java files under Base-pack or under the sub-package, and if scanned into classes with annotations such as @component @[email protected], register these classes as beans (see:/HTTP) blog.csdn.net/chunqiuwei/article/details/16115135)

3.<context:annotation-config/> (Details view: http://www.cnblogs.com/iuranus/archive/2012/07/19/2599084.html)

4.<tx:annotation-driven/>

The driver for this annotation is @transactional, which uses transaction configuration claims based on annotations, so that in a specific application you can specify which methods are used for transactions.

@Transactional annotations can be applied to interface definitions and interface methods, class definitions, and public methods of classes.

The spring team's recommendation is that you use @Transactional annotations on specific classes (or methods of classes) rather than on any interface that the class implements.

5.<task:annotation-driven> <task:scheduler> <task:executor> Timers

6.<context:property-placeholder> http://blog.sina.com.cn/s/blog_4550f3ca0100ubmt.html


This article is from the "small corner of Big Cheng" blog, please be sure to keep this source http://dachengxi.blog.51cto.com/4658215/1631873

Spring Learning Record (i)

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.