Wildfly – Define system property

C:\java\wildfly\wildfly-10.1.0.Final\bin>jboss-cli –connect controller=localhost
[standalone@localhost:9990 /] /system-property=spring.profiles.active:add(value=local)
{“outcome” => “success”}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:read-resource
{
“outcome” => “success”,
“result” => {“value” => “local”}
}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:read-resource
{
“outcome” => “success”,
“result” => {“value” => “local”}
}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:add(value=local)
{
“outcome” => “failed”,
“failure-description” => “WFLYCTL0212: Duplicate resource [(\”system-property\” => \”spring.profiles.active\”)]”,
“rolled-back” => true
}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:read-resource
{
“outcome” => “success”,
“result” => {“value” => “local”}
}
[standalone@localhost:9990 /] /system-property=LOGDIR:read-resource
{
“outcome” => “success”,
“result” => {“value” => “D:/logs”}
}
[standalone@localhost:9990 /] /system-property=LOG
DIR:read-resource
{
“outcome” => “success”,
“result” => {“value” => “D:/logs”}
}
[standalone@localhost:9990 /] /system-property=spring.profiles.active:read-resource
{
“outcome” => “success”,
“result” => {“value” => “local”}
}

https://developer.jboss.org/thread/197273
https://docs.jboss.org/author/display/AS7/Admin+Guide#AdminGuide-SystemProperties
https://developer.jboss.org/wiki/JBossAS7SystemProperties