From f6262c82e1c907d729327d3f1450494e4bb4ab45 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 26 Jul 2023 21:09:07 +0000 Subject: [PATCH 1/2] Bump org.apache.pdfbox:pdfbox from 2.0.28 to 2.0.29 Bumps org.apache.pdfbox:pdfbox from 2.0.28 to 2.0.29. --- updated-dependencies: - dependency-name: org.apache.pdfbox:pdfbox dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 688bee00..94252116 100644 --- a/build.gradle +++ b/build.gradle @@ -55,7 +55,7 @@ dependencies { implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0' //general PDF - implementation 'org.apache.pdfbox:pdfbox:2.0.28' + implementation 'org.apache.pdfbox:pdfbox:2.0.29' implementation 'org.bouncycastle:bcprov-jdk15on:1.70' implementation 'org.bouncycastle:bcpkix-jdk15on:1.70' implementation 'com.itextpdf:itext7-core:7.2.5' From ca16ecef24ae699197d1455eea51ebe2905be968 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 8 Aug 2023 20:09:05 +0100 Subject: [PATCH 2/2] Create StartupApplicationListener.java --- .../config/StartupApplicationListener.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/stirling/software/SPDF/config/StartupApplicationListener.java diff --git a/src/main/java/stirling/software/SPDF/config/StartupApplicationListener.java b/src/main/java/stirling/software/SPDF/config/StartupApplicationListener.java new file mode 100644 index 00000000..a25cbbbf --- /dev/null +++ b/src/main/java/stirling/software/SPDF/config/StartupApplicationListener.java @@ -0,0 +1,20 @@ +package stirling.software.SPDF.config; + + +import org.springframework.context.ApplicationListener; +import org.springframework.context.event.ContextRefreshedEvent; +import org.springframework.stereotype.Component; + +import java.time.LocalDateTime; + +@Component +public class StartupApplicationListener implements ApplicationListener { + + public static LocalDateTime startTime; + + @Override + public void onApplicationEvent(ContextRefreshedEvent event) { + startTime = LocalDateTime.now(); + } +} +