Hi,
I am trying to declare a Properties bean that would source local properties from:
a) location specified bysystem property - if such property is present, else fromCode:config-location
b) default-config.properties found in classpath
Seems like this should work...
..but am getting this exception instead. What am I doing incorrectly?Code:<util:properties id="cfgProps" location="#{systemProperties['config-location'] ?: classpath:default-config.properties}" />
Caused by: org.springframework.expression.spel.SpelParseExcep tion: EL1041E:(pos 43): After parsing a valid expression, there is still more data in the expression: 'colon(:)'
at org.springframework.expression.spel.standard.Inter nalSpelExpressionParser.doParseExpression(Internal SpelExpr essionParser.java:118)
at org.springframework.expression.spel.standard.SpelE xpressionParser.doParseExpression(SpelExpressionPa rser.jav a:56)
at org.springframework.expression.spel.standard.SpelE xpressionParser.doParseExpression(SpelExpressionPa rser.jav a:1)
at org.springframework.expression.common.TemplateAwar eExpressionParser.parseExpressions(TemplateAwareEx pression Parser.java:128)


Reply With Quote
