counter: 1.1.1 - Upgraded Spring Boot 2.5.4 -> 3.0.2 counter-1.1.1
authorKai Moritz <kai@juplo.de>
Sun, 5 Feb 2023 13:31:47 +0000 (14:31 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 5 Feb 2023 13:35:20 +0000 (14:35 +0100)
pom.xml
src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java
src/main/resources/application.properties [deleted file]
src/main/resources/application.yml [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
index 4fe2235..1d2212c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -5,18 +5,16 @@
        <parent>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-parent</artifactId>
-               <version>2.5.4</version>
+               <version>3.0.2</version>
                <relativePath/> <!-- lookup parent from repository -->
        </parent>
        <groupId>de.juplo.kafka.wordcount</groupId>
        <artifactId>counter</artifactId>
-       <version>1.1.0</version>
+       <version>1.1.1</version>
        <name>Wordcount-Counter</name>
        <description>Word-counting stream-processor of the multi-user wordcount-example</description>
        <properties>
                <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
-               <java.version>11</java.version>
-               <kafka.version>2.8.0</kafka.version>
        </properties>
        <dependencies>
                <dependency>
index 4d3bcc4..5248609 100644 (file)
@@ -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 (file)
index c52cd9c..0000000
+++ /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 (file)
index 0000000..d940f22
--- /dev/null
@@ -0,0 +1,7 @@
+server:
+  port: 8083
+management:
+  endpoints:
+    web:
+      exposure:
+        include: "*"