Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

VMware 2V0-72.22 Exam - Topic 5 Question 92 Discussion

Which two options will inject the value of the daily.limit system property? (Choose two.)
C) @Value(''$(daily.limit)'') and D) @Value(''#{systemProperties['daily.limit']}'')
A) @Value(''#{daily.limit}'')
B) @Value(''$(systemProperties.daily.limit)'')
E) @Value(''#{systemProperties.daily.limit}'')

VMware 2V0-72.22 Exam - Topic 5 Question 92 Discussion

Actual exam question for VMware's 2V0-72.22 exam
Question #: 92
Topic #: 5
[All 2V0-72.22 Questions]

Which two options will inject the value of the daily.limit system property? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: C, D

The @Value annotation can be used to inject values from external sources into fields, constructor parameters, or method parameters. To inject a system property, the annotation can use either the ${...} placeholder syntax or the #{...} SpEL expression syntax. The former is simpler and more concise, while the latter is more powerful and flexible. Both syntaxes can access the systemProperties map, which contains all the system properties as key-value pairs.


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel