diff --git a/workshop-steps/step-04-spring-modulith-verify-and-document-monolith-structure.md b/workshop-steps/step-04-spring-modulith-verify-and-document-monolith-structure.md index c18952a..151451c 100644 --- a/workshop-steps/step-04-spring-modulith-verify-and-document-monolith-structure.md +++ b/workshop-steps/step-04-spring-modulith-verify-and-document-monolith-structure.md @@ -1,6 +1,7 @@ # Spring Modulith Verify Application module structure -Spring Modulith internally uses jMolecules to verify the module structure of an +Spring Modulith internally uses jMolecules and ArchUnit to verify the module +structure of an application. ## The module / architecture test diff --git a/workshop-steps/step-05-spring-modulith-testing.md b/workshop-steps/step-05-spring-modulith-testing.md index 86c26ef..bf249b9 100644 --- a/workshop-steps/step-05-spring-modulith-testing.md +++ b/workshop-steps/step-05-spring-modulith-testing.md @@ -60,7 +60,7 @@ to mode = BootstrapMode.ALL_DEPENDENCIES, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT ) -@Import(ContainerConfig.class +@Import(ContainerConfig.class) ``` diff --git a/workshop-steps/step-08-spring-modulith-events.md b/workshop-steps/step-08-spring-modulith-events.md index 6bdf87d..009ca90 100644 --- a/workshop-steps/step-08-spring-modulith-events.md +++ b/workshop-steps/step-08-spring-modulith-events.md @@ -8,6 +8,7 @@ be annotated with `@Transactional` in turn. An async, transactional event listener running in a transaction itself ```java + @Component class InventoryManagement { @@ -34,9 +35,23 @@ class InventoryManagement { } ``` +## Add spring-modulith-events-api to access to @ApplicationModuleListener + +1. Go to your [pom.xml](../pom.xml) + +And add the following to your `pom.xml`: + +```xml + + + spring-modulith-events-api + org.springframework.modulith + +``` + ## Replace @EventListener with @ApplicationModuleListener -1. Go to `NotificacionService` and replace `@EventListener` for +1. Go to `NotificationService` and replace `@EventListener` for `@ApplicationModuleListener` ## Testing your module events with Spring Modulith test Scenario diff --git a/workshop-steps/step-09-spring-modullith-record.md b/workshop-steps/step-09-spring-modullith-record.md index 5932458..ad23236 100644 --- a/workshop-steps/step-09-spring-modullith-record.md +++ b/workshop-steps/step-09-spring-modullith-record.md @@ -7,14 +7,9 @@ And add the following to your `pom.xml`: ```xml - spring-modulith-events-api + spring-modulith-starter-jdbc org.springframework.modulith - - -spring-modulith-starter-jdbc -org.springframework.modulith - ``` 2.Go to [application.yml](../src/main/resources/application.yml)