Skip to content
Snippets Groups Projects
Commit 141f040f authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-4097 Add ConfigurationPropertiesScan as in muk-postfach

parent dab615b4
No related branches found
Tags
No related merge requests found
......@@ -8,17 +8,17 @@ import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.Configuration;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = Osi2PostfachProperties.PREFIX)
@RequiredArgsConstructor
@ConfigurationPropertiesScan
public class Osi2PostfachProperties {
// From de.ozgcloud.nachrichten.NachrichtenManagerConfiguration
public static final String GRPC_FILE_MANAGER_NAME = "file-manager";
......@@ -29,10 +29,12 @@ public class Osi2PostfachProperties {
private boolean enabled;
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = AuthConfiguration.PREFIX)
@ConfigurationPropertiesScan
public static class AuthConfiguration {
public static final String PREFIX = Osi2PostfachProperties.PREFIX + ".auth";
......@@ -53,6 +55,7 @@ public class Osi2PostfachProperties {
@Setter
@Configuration
@ConfigurationProperties(prefix = ApiConfiguration.PREFIX)
@ConfigurationPropertiesScan
public static class ApiConfiguration {
public static final String PREFIX = Osi2PostfachProperties.PREFIX + ".api";
......@@ -72,6 +75,7 @@ public class Osi2PostfachProperties {
@Setter
@Configuration
@ConfigurationProperties(prefix = ProxyConfiguration.PREFIX)
@ConfigurationPropertiesScan
public static class ProxyConfiguration {
public static final String PREFIX = Osi2PostfachProperties.PREFIX + ".proxy";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment