loadStubsFromEnv

Loads stub definitions from the YAML file specified by the ENV_MOKKSY_CONFIG environment variable or the PROP_MOKKSY_CONFIG system property, in that order.

Example:

MOKKSY_CONFIG=/app/stubs.yaml java -jar app.jar
# or
java -Dmokksy.config=/app/stubs.yaml -jar app.jar

Return

This server instance for chaining.

Throws

if neither the environment variable nor the system property is set.

if the resolved file is missing or invalid.