use of io.micronaut.context.banner.ResourceBanner in project micronaut-core by micronaut-projects.
the class Micronaut method printBanner.
private void printBanner() {
if (!isBannerEnabled()) {
return;
}
PrintStream out = System.out;
Optional<URL> resource = getResourceLoader().getResource(BANNER_NAME);
if (resource.isPresent()) {
new ResourceBanner(resource.get(), out).print();
} else {
new MicronautBanner(out).print();
}
}
Aggregations