BoxLang 🚀 A New JVM Dynamic Language Learn More...

ColdBox Properties Loader

v1.0.2 Modules

ColdBox Properties Loader

This module reads the Java System properties (java.lang.system.getProperties()) and loads the values into the ColdBox settings.

Installation

box install cbox-properties-loader

Usage

All your properties will be loaded by default.

You can access these in your ColdBox app by using getSetting("PROPERTY_NAME")or by injecting it with property name="secret" inject="coldbox:setting: PROPERTY_NAME";.

Other packages you might want

[box install commandbox-dotenv](https://www.forgebox.io/view/commandbox-dotenv)

Adds the contents of a .env file to your Java System properties when using CommandBox servers.

$ box install cbox-properties-loader

No collaborators yet.
   
  • {{ getFullDate("2016-06-21T23:26:52Z") }}
  • {{ getFullDate("2016-06-21T23:38:09Z") }}
  • 2,363
  • 48