From aec12e4b0a06b6a8f32c789dd75be45c6e71f343 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 5 Feb 2023 14:31:47 +0100 Subject: [PATCH] counter: 1.1.1 - Upgraded Spring Boot 2.5.4 -> 3.0.2 --- pom.xml | 6 ++---- .../kafka/wordcount/counter/CounterStreamProcessor.java | 4 ++-- src/main/resources/application.properties | 2 -- src/main/resources/application.yml | 7 +++++++ 4 files changed, 11 insertions(+), 8 deletions(-) delete mode 100644 src/main/resources/application.properties create mode 100644 src/main/resources/application.yml diff --git a/pom.xml b/pom.xml index 4fe2235..1d2212c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,18 +5,16 @@ org.springframework.boot spring-boot-starter-parent - 2.5.4 + 3.0.2 de.juplo.kafka.wordcount counter - 1.1.0 + 1.1.1 Wordcount-Counter Word-counting stream-processor of the multi-user wordcount-example 0.33.0 - 11 - 2.8.0 diff --git a/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java b/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java index 4d3bcc4..5248609 100644 --- a/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java +++ b/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java @@ -14,8 +14,8 @@ import org.springframework.boot.SpringApplication; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.stereotype.Component; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; import java.util.Properties; import java.util.concurrent.CompletableFuture; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index c52cd9c..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1,2 +0,0 @@ -server.port=8083 -management.endpoints.web.exposure.include=* diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..d940f22 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,7 @@ +server: + port: 8083 +management: + endpoints: + web: + exposure: + include: "*" -- 2.20.1