I am trying to load a .proprties file data in a Spring @Configurtion java class using @ProprtySource and 'Environment' variable. Issue is, I have a property which has value like:
serverName = abcxyz
When I read this property by using method,
String server= env.getProprty("serverName");
System.out.print(server);
Value is printed as "abcxyz".
Please note that, I tried using double backslash like,
serverName = abc\xyz
but still it is simply ignoring from the value string. Also I can not use forward slash in place of backslash.
Can you help me in fixing it? Thanks in advance!!
