@ConfigurationProperties(prefix = "application", ignoreUnknownFields = false)
public class ApplicationProperties1 {
private final Security security = new Security();
private final Kafka kafka = new Kafka();
public static class Kafka {
private String brokerAddress;
private String smsTopic;
private String smsCosumeGroup;
private String timerTaskTopic;
private String timerTaskGroup;
private String jvmNumbers;
}
public static class Security {
private final Authentication authentication = new Authentication();
public static class Authentication {
private final Jwt jwt = new Jwt();
public static class Jwt {
private String secret;
private long tokenValidityInSeconds;
}
}
}
}