Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 788 Bytes

step-09-spring-modullith-record.md

File metadata and controls

40 lines (28 loc) · 788 Bytes

Event Publication Registry

  1. Go to your pom.xml

And add the following to your pom.xml:

<dependency>
  <artifactId>spring-modulith-starter-jdbc</artifactId>
  <groupId>org.springframework.modulith</groupId>
</dependency>

2.Go to application.yml

And add the following that will enable the schema initialization for the event_publication record table.

  modulith:
    events.jdbc.schema-initialization.enabled: true
  1. Then open a database client and run the following query:

create a local connection:

username: test
password: test
jdbc:postgresql://localhost:5432/test
select *
from event_publication;
  1. Run the integration tests is that is empty to see some results.