You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/antora/modules/ROOT/pages/fundamentals.adoc
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,13 @@ In a Spring Boot application, an application module is a unit of functionality t
17
17
* Internal implementation components that are not supposed to be accessed by other modules.
18
18
* References to API exposed by other modules in the form of Spring bean dependencies, application events listened to and configuration properties exposed, usually referred to as _required interface_.
19
19
20
-
Spring Moduliths provides different ways of expressing modules within Spring Boot applications, primarily differing in the level of complexity involved in the overall arrangement.
20
+
Spring Modulith provides different ways of expressing modules within Spring Boot applications, primarily differing in the level of complexity involved in the overall arrangement.
21
21
This allows developers to start simple and naturally move to more sophisticated means as and if needed.
22
22
23
23
[[modules.application-modules]]
24
24
=== The `ApplicationModules` Type
25
25
26
-
Spring Moduliths allows to inspect a codebase to derive an application module model based on the given arrangement and optional configuration.
26
+
Spring Modulith allows to inspect a codebase to derive an application module model based on the given arrangement and optional configuration.
27
27
The `spring-modulith-core` artifact contains `ApplicationModules` that can be pointed to a Spring Boot application class:
28
28
29
29
.Creating an application module model
@@ -397,7 +397,7 @@ package example.inventory
397
397
[[customizing-modules-arrangement]]
398
398
== Customizing the Application Modules Arrangement
399
399
400
-
Spring Moduliths allows to configure some core aspects around the application module arrangement you create via the `@Modulithic` annotation to be used on the main Spring Boot application class.
400
+
Spring Modulith allows to configure some core aspects around the application module arrangement you create via the `@Modulithic` annotation to be used on the main Spring Boot application class.
401
401
402
402
[tabs]
403
403
======
@@ -462,7 +462,7 @@ The annotation exposes the following attributes to customize:
462
462
=== Customizing Module Detection
463
463
464
464
By default, application modules will be expected to be located in direct sub-packages of the package the Spring Boot application class resides in.
465
-
An alternative detection strategy can be activated to only consider package explicitly annotated, either via Spring Modulith's `@ApplicationModule` or jMolecules `@Module` annotation.
465
+
An alternative detection strategy can be activated to only consider packages explicitly annotated, either via Spring Modulith's `@ApplicationModule` or jMolecules `@Module` annotation.
466
466
That strategy can be activated by configuring the `spring.modulith.detection-strategy` to `explicitly-annotated`.
467
467
468
468
.Switching the application module detection strategy to only consider annotated packages
@@ -471,7 +471,7 @@ That strategy can be activated by configuring the `spring.modulith.detection-str
If the neither default application module detection strategy nor the manually annotated one does not work for your application, the detection of the modules can be customized by providing an implementation of `ApplicationModuleDetectionStrategy`.
474
+
If neither the default application module detection strategy nor the manually annotated one works for your application, the detection of the modules can be customized by providing an implementation of `ApplicationModuleDetectionStrategy`.
475
475
That interface exposes a single method `Stream<JavaPackage> getModuleBasePackages(JavaPackage)` and will be called with the package the Spring Boot application class resides in.
476
476
You can then inspect the packages residing within that and select the ones to be considered application module base packages based on a naming convention or the like.
0 commit comments