January 2018
Intermediate to advanced
414 pages
10h 29m
English
We saw in our initial usage of the @Value annotation that we refer to it through an expression ${service.message.default} , this is a query in Spring Expression Language (SpEL).
But Spring provides a range of different kind of expressions that we can use:
//this should be 7@Value(value = "#{4+3}")private lateinit var result1 : Number//this should be one.value / another.value@Value(value = "#{ \${one.value} div \${another.value} }")private lateinit var result2 : Number//this should be one.value == another.value@Value(value ...Read now
Unlock full access