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

com.luues.core.secondary.ApplicationReadyEventLog Maven / Gradle / Ivy

There is a newer version: 2.0.1.RELEASE
Show newest version
package com.luues.core.secondary;

import com.luues.core.config.BeanConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component("core.applicationReadyEventLog")
@Slf4j(topic = "c.l.c.s.a")
public class ApplicationReadyEventLog implements ApplicationListener {

    private final BeanConfig beanConfig = BeanConfig.getBeanConfig();

    @Override
    public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) {
        if(beanConfig.isStartSuccessfulLog())
            log.info("{}", "\n\n" +
                    "       .--,       .--,\n" +
                    "      ( (  \\.---./  ) )\n" +
                    "       '.__/o   o\\__.'\n" +
                    "          {=  ^  =}\n" +
                    "           >  -  <\n" +
                    "          /       \\\n" +
                    "         //       \\\\\n" +
                    "        //|   .   |\\\\\n" +
                    "        \"'\\       /'\"_.-~^`'-.\n" +
                    "           \\  _  /--'         `\n" +
                    "         ___)( )(___\n" +
                    "        (((__) (__)))    高山仰止,景行行止.虽不能至,心向往之。\n\n" +
                    "     ===========================当前运行环境:"+ SystemInfo.getActive() +"\n\n" +
                    "     project service address:" + SystemInfo.value() + "\n\n");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy