Created
May 2, 2016 15:40
-
-
Save davidsan/70c625b6091b1e0cd0d4f54bd58fa868 to your computer and use it in GitHub Desktop.
Spring EL to read the content of a file into a property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property name="myProp" value="T(org.apache.commons.io.FileUtils).readFileToString( | |
T(org.springframework.util.ResourceUtils).getFile('${file-path}'), | |
'UTF-8')" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment