Hi Expert Community,
I have a simple @Value annnotation code:
And on my properties file:Code:@Value("${predef.queries.list}") private String predefQueries;
When I start the webserver I got the following error:Code:predef.queries.list=#{'asm':'ASM', 'tbs':'Tablespace', 'cpu':'CPU'}
But when I changed the properties file value to below I don't get an error anymore.Code:SEVERE: Servlet /capman threw load() exception org.springframework.expression.spel.SpelParseException: EL1041E:(pos 5): After parsing a valid expression, there is still more data in the expression: 'colon(:)'
Can you please help me how can I fix this to use my original properties file value?Code:predef.queries.list='asm':'ASM', 'tbs':'Tablespace', 'cpu':'CPU'
Is there a way to escape characters in properties file?
Thanks!


Reply With Quote
