I want to split a value of property defined application.properties and use it as a value for another property.
Following are my properties in application.properties file
test.product.release.version=2003.1
test.product.release.year=${test.product.release.version}.split('.')[0]
I want value for property test.product.release.year
as 2003
I tried split using ${test.product.release.version}.split('.')[0]
but when I gets the property in my controller I still gets value as 2003.1.split('.')[0]
How can I get it as 2003
only?