splitter: 1.0.1 - Upgraded Spring Boot 2.5.4 -> 3.0.2 splitter-1.0.1
authorKai Moritz <kai@juplo.de>
Sat, 4 Feb 2023 10:05:09 +0000 (11:05 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 5 Feb 2023 10:54:25 +0000 (11:54 +0100)
- Fixed the changed package-naming (javax -> jakarta)
- Also switched from properties- to YAML-format

pom.xml
src/main/java/de/juplo/kafka/wordcount/splitter/SplitterStreamProcessor.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 54df55f..8c1ea6f 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>splitter</artifactId>
-       <version>1.0.0</version>
+       <version>1.0.1</version>
        <name>Wordcount-Splitter</name>
        <description>Stream-processor of the multi-user wordcount-example, that splits the sentences up into single words</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 7218d6f..3eca8f4 100644 (file)
@@ -11,8 +11,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.Arrays;
 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 3046fc3..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-server.port=8086
-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..385daaa
--- /dev/null
@@ -0,0 +1,7 @@
+server:
+  port: 8086
+management:
+  endpoints:
+    web:
+      exposure:
+        include: "*"