59df97598d17a8f2b3db2c15489f7226a9d2c8f6.svn-base 767 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package org.jeecg.boot.starter.lock.prop;
  2. import lombok.Data;
  3. import org.jeecg.boot.starter.lock.enums.RedisConnectionType;
  4. import org.springframework.boot.context.properties.ConfigurationProperties;
  5. /**
  6. * Redisson配置映射类
  7. *
  8. * @author zyf
  9. * @date 2020-11-11
  10. */
  11. @Data
  12. @ConfigurationProperties(prefix = "jeecg.redisson")
  13. public class RedissonProperties {
  14. /**
  15. * redis主机地址,ip:port,多个用逗号(,)分隔
  16. */
  17. private String address;
  18. /**
  19. * 连接类型
  20. */
  21. private RedisConnectionType type;
  22. /**
  23. * 密码
  24. */
  25. private String password;
  26. /**
  27. * 数据库(默认0)
  28. */
  29. private int database;
  30. /**
  31. * 是否装配redisson配置
  32. */
  33. private Boolean enabled = true;
  34. }