- 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
- 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;
- Run the integration tests is that is empty to see some results.