Skip to content

Commit 32ce4d0

Browse files
committed
Add basic spring app.
1 parent e5bc148 commit 32ce4d0

File tree

4 files changed

+102
-1
lines changed

4 files changed

+102
-1
lines changed

debezium/pom.xml

+72
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,84 @@
99
<version>0.0.1-SNAPSHOT</version>
1010
</parent>
1111

12+
<groupId>ie.emeraldjava.debezium</groupId>
1213
<artifactId>debezium</artifactId>
14+
<packaging>jar</packaging>
1315

1416
<properties>
1517
<maven.compiler.source>21</maven.compiler.source>
1618
<maven.compiler.target>21</maven.compiler.target>
1719
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20+
<spring-boot.version>2.7.18</spring-boot.version>
1821
</properties>
1922

23+
<dependencies>
24+
<dependency>
25+
<groupId>org.springframework.boot</groupId>
26+
<artifactId>spring-boot-starter-web</artifactId>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.springframework.boot</groupId>
30+
<artifactId>spring-boot-starter-actuator</artifactId>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.springframework.boot</groupId>
34+
<artifactId>spring-boot-configuration-processor</artifactId>
35+
<optional>true</optional>
36+
</dependency>
37+
<dependency>
38+
<groupId>org.springframework.boot</groupId>
39+
<artifactId>spring-boot-starter-test</artifactId>
40+
</dependency>
41+
<dependency>
42+
<groupId>org.springframework.boot</groupId>
43+
<artifactId>spring-boot-devtools</artifactId>
44+
<scope>runtime</scope>
45+
<optional>true</optional>
46+
</dependency>
47+
<dependency>
48+
<groupId>org.projectlombok</groupId>
49+
<artifactId>lombok</artifactId>
50+
<version>1.18.30</version>
51+
<scope>provided</scope>
52+
</dependency>
53+
</dependencies>
54+
55+
<dependencyManagement>
56+
<dependencies>
57+
<dependency>
58+
<groupId>org.junit</groupId>
59+
<artifactId>junit-bom</artifactId>
60+
<version>5.10.3</version>
61+
<!-- <version>${junit-jupiter.version}</version>-->
62+
<type>pom</type>
63+
<scope>import</scope>
64+
</dependency>
65+
<dependency>
66+
<groupId>org.springframework.boot</groupId>
67+
<artifactId>spring-boot-dependencies</artifactId>
68+
<version>${spring-boot.version}</version>
69+
<type>pom</type>
70+
<scope>import</scope>
71+
</dependency>
72+
</dependencies>
73+
</dependencyManagement>
74+
75+
<build>
76+
<plugins>
77+
<plugin>
78+
<groupId>org.springframework.boot</groupId>
79+
<artifactId>spring-boot-maven-plugin</artifactId>
80+
<executions>
81+
<execution>
82+
<goals>
83+
<goal>build-info</goal>
84+
<goal>repackage</goal>
85+
</goals>
86+
</execution>
87+
</executions>
88+
</plugin>
89+
</plugins>
90+
</build>
91+
2092
</project>

debezium/readme.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ https://medium.com/@rayane.gouda/making-debezium-connect-support-confluent-schem
1919
https://docs.ververica.com/vvc/connectors-and-formats/built-in-formats/debezium-avro-confluent
2020
https://github.com/debezium/debezium-examples/blob/main/tutorial/register-mysql-avro.json
2121

22-
https://github.com/rayanegouda/medium/tree/main/step1
22+
https://github.com/rayanegouda/medium/tree/main/step1
23+
24+
## postgres
25+
26+
https://debezium.io/documentation/reference/stable/connectors/postgresql.html
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package ie.emeraldjava.debezium;
2+
3+
import lombok.extern.slf4j.Slf4j;
4+
import org.springframework.boot.CommandLineRunner;
5+
import org.springframework.boot.SpringApplication;
6+
import org.springframework.boot.autoconfigure.SpringBootApplication;
7+
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
8+
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
9+
10+
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
11+
@Slf4j
12+
public class DebeziumApplication implements CommandLineRunner {
13+
14+
public static void main(String[] args) {
15+
SpringApplication.run(DebeziumApplication.class, args);
16+
}
17+
18+
@Override
19+
public void run(String... args) throws Exception {
20+
log.info("run",args);
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spring:
2+
application:
3+
name: DebeziumApp

0 commit comments

Comments
 (0)