Fix #101
The default value was never initialized due to a missing annotation
This commit is contained in:
@@ -23,6 +23,7 @@ package io.kamax.mxisd.config;
|
|||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
import javax.annotation.PostConstruct;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@@ -39,6 +40,7 @@ public class BulkLookupConfig {
|
|||||||
this.enabled = enabled;
|
this.enabled = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostConstruct
|
||||||
public void build() {
|
public void build() {
|
||||||
if (Objects.isNull(enabled)) {
|
if (Objects.isNull(enabled)) {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
Reference in New Issue
Block a user