I've a URL property injected as @Value("http://log${RELEASE_NAME:}:1234"). I now want to change this such that if RELEASE_NAME is defined, the URL should be http://log-${RELEASE_NAME}:1234; if RELEASE_NAME is not defined, the URL should be http://log:1234.
What'd be the SPEL to do this? The challenge is to conditionally prepend -.