0

I can use Condtional Bean in connection with application.properties. However, I consider is it possible to do the same thing, but using jvm arguments.

1 Answers1

0

As @Ralph posted in his answer, you can use Spring EL expressions to refer to systemProperties bean and thus accessing JVM args.

E.g. refer as #{systemProperties.test} for -Dtest="hallo welt"

Community
  • 1
  • 1
Ivan Pronin
  • 1,768
  • 16
  • 14