Getting started
Define Principal Module or Parent Module
Using Lg5 Spring Framework 1.0.0-alpha
, JDK 21
More details
Dependencies diagram
Parent Module
pom.xml |
---|
| <project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.lg5.spring</groupId>
<artifactId>lg5-spring-parent</artifactId>
<version>1.0.0-alpha.[check lts version]</version>
<relativePath/>
</parent>
<groupId>com.blanksystem</groupId>
<artifactId>blank-service</artifactId>
<version>1.0.0-alpha</version>
<packaging>pom</packaging>
<modules>
...
</modules>
<dependencyManagement>
<dependencies>
...
</dependencies>
</dependencyManagement>
</project>
|
Note: Please check the latest version
How do you implement a domain service?
Starter Describe step per step to implement a blank domain service.
⏳ Analyse the context and begin by Acceptance Test and Domain Core...
pom.xml |
---|
| <dependency>
<groupId>com.lg5.spring</groupId>
<artifactId>lg5-spring-acceptance-test</artifactId>
</dependency>
|
pom.xml |
---|
| <dependencies>
<dependency>
<groupId>com.lg5.spring</groupId>
<artifactId>lg5-spring-data-jpa</artifactId>
</dependency>
<!-- if you need SAGA Pattern/Outbox Pattern, else remove dependencies -->
<dependency>
<groupId>com.lg5.spring.outbox</groupId>
<artifactId>lg5-spring-outbox</artifactId>
</dependency>
</dependencies>
|
pom.xml |
---|
| <dependencies>
<dependency>
<groupId>com.lg5.spring</groupId>
<artifactId>lg5-spring-client</artifactId>
</dependency>
...
</dependencies>
|
pom.xml |
---|
| <dependencies>
<dependency>
<groupId>com.lg5.spring</groupId>
<artifactId>lg5-spring-api-rest</artifactId>
</dependency>
...
</dependencies>
|
pom.xml |
---|
| <dependencies>
<dependency>
<groupId>com.lg5.spring</groupId>
<artifactId>lg5-spring-starter</artifactId>
</dependency>
<dependency>
<groupId>com.lg5.spring</groupId>
<artifactId>lg5-spring-logger</artifactId>
</dependency>
<!-- tests -->
<dependency>
<groupId>com.lg5.spring</groupId>
<artifactId>lg5-spring-integration-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
|
Project structure
└── blank-service
├── blank-acceptance-test
│ └── pom.xml
├── blank-api
│ └── pom.xml
├── blank-container
│ └── pom.xml
├── blank-data-access
│ └── pom.xml
├── blank-domain
│ └── pom.xml
├── blank-external
│ └── pom.xml
├── blank-message
│ └── pom.xml
└── pom.xml