Updated on 2022-02-22 GMT+08:00

Env Embedded Objects

The Env embedded object provides a method to obtain an environment variable value.

Method

Table 1 Method description

Method

Description

String get(String name)

Obtains the value of a specified environment variable.

Example

The EL expression used to obtain the value of environment variable test is as follows:

#{Env.get("test")}