java - Split String with Spring EL -


i needs split string value $$ in spring context xml file, have tried below things, no luck :( can please?

in java it's working this,

public static void main(string[] args) {         system.err.println("localhost$$8080".split("\\$\\$")[1]);     } 

my tries

  • <constructor-arg name="port" value="#{'#{config.getnode()}'.split('\\$\\$')[1]}" />
  • <constructor-arg name="port" value="#{'#{config.getnode()}'.split('$$')[1]}" />
  • <constructor-arg name="port" value="#{'#{config.getnode()}'.split('\$\$')[1]}" />
  • <constructor-arg name="port" value="#{'#{config.getnode()}'.split('\\u0024\\u0024')[1]}" />

note : please assume config.getnode() give value "localhost$$8080".

it should below:

 <constructor-arg name="port"        value="#{config.getnode().split('\\u0024\\u0024')[1]}" /> 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -