Spring Configuration (iii): Expression language for spring el--spring
Source: Internet
Author: User
Spring el--spring Expression language: Supports the use of expressions in XML and annotations, similar to the El Expression language of JSPs.
Spring development often involves invoking a variety of resources, including common files, URLs, configuration files, system environment variables, and so on, and we might use spring's expression language to implement resource injection.
Spring uses an expression primarily in @value parameters.
Example:
Inject normal string:
@Value ("Hello.") I Love you. ")
Private String normal;
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.