I have following property in my application.properties file.
test.product.release.version=2003.1
test.product.release.year=#{'${test.product.release.version}'.split('[.]')[0]
When I use the property test.product.release.year
in my spring controller using @Value
annotation, it's giving me value as 2003, but when I get the value of it through AbstractEnvironment#getProperty
I am getting value as
#{'${test.product.release.version}'.split('[.]')[0]
How can I get the value 2003 by using AbstractEnvironment?