From 9fa42cc12ea9ec85df5ec91f41971e8aca81e8da Mon Sep 17 00:00:00 2001 From: Misagh Moayyed Date: Sat, 3 Feb 2024 17:31:26 +0400 Subject: [PATCH] remove duplicate block --- .../mgmt/web/CasManagementWebApplication.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/webapp/cas-mgmt-webapp-init/src/main/java/org/apereo/cas/mgmt/web/CasManagementWebApplication.java b/webapp/cas-mgmt-webapp-init/src/main/java/org/apereo/cas/mgmt/web/CasManagementWebApplication.java index b9554a8b49..9a586cf9b8 100644 --- a/webapp/cas-mgmt-webapp-init/src/main/java/org/apereo/cas/mgmt/web/CasManagementWebApplication.java +++ b/webapp/cas-mgmt-webapp-init/src/main/java/org/apereo/cas/mgmt/web/CasManagementWebApplication.java @@ -5,12 +5,9 @@ import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.configuration.CasManagementConfigurationProperties; import org.apereo.cas.mgmt.CasManagementEmbeddedContainerUtils; -import org.apereo.cas.util.AsciiArtUtils; -import org.apereo.cas.util.DateTimeUtils; import lombok.NoArgsConstructor; import lombok.extern.slf4j.Slf4j; import lombok.val; -import org.apache.commons.lang3.StringUtils; import org.springframework.boot.WebApplicationType; import org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -26,14 +23,11 @@ import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration; import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; -import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; -import org.springframework.context.event.EventListener; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.transaction.annotation.EnableTransactionManagement; -import java.time.Instant; /** * This is {@link CasManagementWebApplication}. @@ -80,15 +74,4 @@ public static void main(final String[] args) { .logStartupInfo(true) .run(args); } - - /** - * Handle application ready event. - * - * @param event the event - */ - @EventListener - public void handleApplicationReadyEvent(final ApplicationReadyEvent event) { - AsciiArtUtils.printAsciiArtReady(LOGGER, StringUtils.EMPTY); - LOGGER.info("Ready to process requests @ [{}]", DateTimeUtils.zonedDateTimeOf(Instant.ofEpochMilli(event.getTimestamp()))); - } }