mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2024-06-03 06:10:11 +02:00
19 lines
542 B
Java
19 lines
542 B
Java
package stirling.software.SPDF.config;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import org.springframework.context.ApplicationListener;
|
|
import org.springframework.context.event.ContextRefreshedEvent;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
public class StartupApplicationListener implements ApplicationListener<ContextRefreshedEvent> {
|
|
|
|
public static LocalDateTime startTime;
|
|
|
|
@Override
|
|
public void onApplicationEvent(ContextRefreshedEvent event) {
|
|
startTime = LocalDateTime.now();
|
|
}
|
|
}
|