public class NinjaPropertiesImplTool extends Object
Constructor and Description |
---|
NinjaPropertiesImplTool() |
Modifier and Type | Method and Description |
---|---|
static void |
checkThatApplicationSecretIsSet(boolean isProd,
String baseDirWithoutTrailingSlash,
org.apache.commons.configuration.PropertiesConfiguration defaultConfiguration,
org.apache.commons.configuration.Configuration compositeConfiguration)
This method checks that your configurations have set a
application.secret=23r213r12r123
If application.secret is missing or is empty it will do the following:
- In dev and test mode it'll generate a new application secret and write the secret
to both src/main/java/conf/application.conf and the classes dir were the compiled stuff
goes.
|
public static void checkThatApplicationSecretIsSet(boolean isProd, String baseDirWithoutTrailingSlash, org.apache.commons.configuration.PropertiesConfiguration defaultConfiguration, org.apache.commons.configuration.Configuration compositeConfiguration)
Copyright © 2019 ninjaframework. All rights reserved.