The default value was never initialized due to a missing annotation
This commit is contained in:
Max Dor
2018-11-30 02:53:30 +01:00
parent 7208c7e456
commit f13748abeb

View File

@@ -23,6 +23,7 @@ package io.kamax.mxisd.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;
import java.util.Objects;
@Configuration
@@ -39,6 +40,7 @@ public class BulkLookupConfig {
this.enabled = enabled;
}
@PostConstruct
public void build() {
if (Objects.isNull(enabled)) {
enabled = true;