Thanks, that's what I was missing, I thought @Value was exclusive to env vars and props, apparently Spring does inject command line args
except, it looks like it works in this format
-Dspring-boot.run.arguments="--p=foo"
with
@Value("${p}")
String p;
Thanks again!
This is much more straightforward