All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.flynn.polaris.data.jdbc.properties.PolarisDataSourceProperties Maven / Gradle / Ivy

package io.github.flynn.polaris.data.jdbc.properties;

import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.autoconfigure.mongo.MongoProperties;

@AllArgsConstructor
@Data
public class PolarisDataSourceProperties {

  private MongoDataSources mongo;
  private RedisDataSources redis;

  @Data
  @AllArgsConstructor
  @NoArgsConstructor
  @Builder
  public static class MongoDataSources {
    private Map datasource;
    private String primary;
  }

  @Data
  @AllArgsConstructor
  @NoArgsConstructor
  @Builder
  public static class RedisDataSources {
    private Map datasource;
    private String primary;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy