From book Getting started with Spring framework -4th edition, I came across this sentence (page 180):
You should note that @Value annotation can be used at method-level and method-parameter-level only if the method is annotated with @Autowired, @Resource or @Inject annotation.
So, I gave it a shot:
What I get it:
-First notice is that book was incorrect as it worked for method-level.
-Second notice and question is how does it work when @Value is at method-level and doesn't work when @Value is inside method-parameters? What happens behind the scenes?