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

com.nepxion.discovery.console.redis.configuration.RedisConfigAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 6.22.0
Show newest version
package com.nepxion.discovery.console.redis.configuration;

/**
 * 

Title: Nepxion Discovery

*

Description: Nepxion Discovery

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @author JiKai Sun * @version 1.0 */ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.nepxion.banner.BannerConstant; import com.nepxion.banner.Description; import com.nepxion.banner.LogoBanner; import com.nepxion.banner.NepxionBanner; import com.nepxion.discovery.common.entity.ConfigType; import com.nepxion.discovery.console.adapter.ConfigAdapter; import com.nepxion.discovery.console.redis.adapter.RedisConfigAdapter; import com.taobao.text.Color; @Configuration public class RedisConfigAutoConfiguration { static { /*String bannerShown = System.getProperty(BannerConstant.BANNER_SHOWN, "true"); if (Boolean.valueOf(bannerShown)) { System.out.println(""); System.out.println("╔═══╗ ╔╗"); System.out.println("║╔═╗║ ║║"); System.out.println("║╚═╝╠══╦═╝╠╦══╗"); System.out.println("║╔╗╔╣║═╣╔╗╠╣══╣"); System.out.println("║║║╚╣║═╣╚╝║╠══║"); System.out.println("╚╝╚═╩══╩══╩╩══╝"); System.out.println(RedisConstant.TYPE + " Config"); System.out.println(""); }*/ LogoBanner logoBanner = new LogoBanner(RedisConfigAutoConfiguration.class, "/com/nepxion/redis/resource/logo.txt", "Welcome to Nepxion", 5, 5, new Color[] { Color.red, Color.green, Color.cyan, Color.blue, Color.yellow }, true); NepxionBanner.show(logoBanner, new Description("Config:", ConfigType.REDIS.toString(), 0, 1), new Description(BannerConstant.GITHUB + ":", BannerConstant.NEPXION_GITHUB + "/Discovery", 0, 1)); } @Bean public ConfigAdapter configAdapter() { return new RedisConfigAdapter(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy