Configuration
JAX-RS Jersey doesn't specify how application configurations are to be loaded. ChatbotWS, however, utilizes a library called owner.
The configurations in this page can be set from several sources in the following order:
- the operating system's environment variables; for instance, an environment variable can be set with
export DB_URL="jdbc:mysql://db/elide?serverTimezone=UTC"
- the Java system properties; for example, a Java system property can be set using
System.setProperty("DB_URL", "jdbc:mysql://db/elide?serverTimezone=UTC")
- a .properties file placed under CLASSPATH. This file can be put under
src/main/resources
source directory with contents, for example,DB_URL=jdbc:mysql://db/elide?serverTimezone=UTC
Note that environment config has higher priority than Java system properties. Java system properties have higher priority than file based configuration.