How to Retrieve System Properties in WildFly

Asked 1 years ago, Updated 1 years ago, 73 views

I have registered the XXX.war folder with WildFly to display the screen in my web browser.
DoPost runs when a particular button is pressed. I would like to get the value of the system properties at this time.
Where should I set it?

OS:Linux Sever 7.8
WildFly:18.0.1

wildfly

2022-09-30 15:31

1 Answers

standalone/configuration/standalone.xml:

<?xml version='1.0' encoding='UTF-8'?>

<server xmlns="urn:jboss:domain:10.0">
    <system-properties>
        <property name="foo" value="bar"/>
        <property name="hoge" value="piyo"/>
    </system-properties>

    <!-------->
</server>

Note:


2022-09-30 15:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.