Whilst doing some re-work on a loan calculator, I wanted to move the configuration of the various loan rates in to the spring XML configuration. Setting up the various loan rates for the amount borrowed is relatively straightforward, but I wanted to use constants (defined only once in the app) in the map rather than straight strings. Easy you may say.. and indeed, it is if you use the ‘util’ schema.
Add the util schema to your bean configuration xml
1 2 3 4 5 6 7 8
and then you can just reference your constants as follows:“