Togglz Yml/Yaml Configuration for My SpringBoot Not working -
trying create feature toggles using togglz. made below configurations/code in application,
bootstrap.yml: togglz: enabled: true features: feature_one: true feature enum class:
public enum appfeatures implements feature { @label("feature_one") feature_one; public boolean isactive() { return featurecontext.getfeaturemanager().isactive(this); } } my requirement:
i need this, if feature_one configured true in yml file, if condition, else, else has execute..
if(appfeatures.feature_one.isactive()){}else{} but expectation not happening. though have given true in yml file, appfeatures.feature_one.isactive() not true, help/guide me figure out making mistake.
note using, togglz 2.4.1 final , springboot 1.3.3, need enabling/disabling should done in yml only, not in enum class.
Comments
Post a Comment