dimanche 15 mars 2015

Accessing user defined properties using spring expression language

Is it poosible to read user defined .properties file using SpEL? I know we can do something like this for systemProperties



@Value("#{ systemProperties['user.region'] }")


I want to access a property in a user defined properties file. Also is it possible to use SpEL in @ContextConfiguration annotation?


Aucun commentaire:

Enregistrer un commentaire