-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(spring) reorganize in maven module
- Loading branch information
mpumd
committed
Oct 8, 2024
1 parent
ba0d773
commit 61aa49c
Showing
8 changed files
with
170 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,29 @@ | ||
# poc-person | ||
|
||
## url acces | ||
This project is just a poc to show : | ||
- DDD approch on a functional entity named person with best practices, | ||
- Context approch, aggregat, repository, event, command, query (CQRS vocabulary), | ||
- BDD testing on the domain by the application layer, | ||
- hexagonal architecture, | ||
- spring, quarkus, others ? | ||
- in : | ||
- rest, soap, grpc, graphql and reactive/stream with reader model, | ||
- kafka/jms consumer, | ||
- out : | ||
- jpa(postgre, oracle, sqlserver), | ||
- nosql (mongodb, elasticsearch) with a reader model | ||
- client (rest, soap), | ||
- kafka/jms producer | ||
- security OIDC, SAML, bearer. | ||
- java native compilation with graalvm, | ||
|
||
# spring boot | ||
```bash | ||
mvn -T 1C clean install -DskipTests && mvn spring-boot:run -pl infra-spring/sb-bootstrap/ | ||
``` | ||
|
||
## url acces | ||
- http://localhost:8090/spring/api-docs | ||
- http://localhost:8090/spring/swagger-ui/index.html | ||
- http://localhost:8090/spring/swagger-ui | ||
- http://localhost:8090/spring/actuator | ||
- http://localhost:8090/spring/admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.mpumd.poc</groupId> | ||
<artifactId>infra-spring</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>sb-bootstrap</artifactId> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.mpumd.poc</groupId> | ||
<artifactId>sb-in-rest</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.mpumd.poc</groupId> | ||
<artifactId>sb-out-jpa</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>de.codecentric</groupId> | ||
<artifactId>spring-boot-admin-starter-server</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>de.codecentric</groupId> | ||
<artifactId>spring-boot-admin-starter-client</artifactId> | ||
</dependency> | ||
|
||
<!-- <dependency>--> | ||
<!-- <groupId>org.springframework.boot</groupId>--> | ||
<!-- <artifactId>spring-boot-starter-security</artifactId>--> | ||
<!-- </dependency>--> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.graalvm.buildtools</groupId> | ||
<artifactId>native-maven-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-maven-plugin</artifactId> | ||
<configuration> | ||
<excludes> | ||
<exclude> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
</exclude> | ||
</excludes> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
2 changes: 1 addition & 1 deletion
2
...ng/PersonApplicationSpringBootRunner.java → ...sb/PersonApplicationSpringBootRunner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.mpumd.poc</groupId> | ||
<artifactId>infra-spring</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>sb-in-rest</artifactId> | ||
|
||
<dependencies> | ||
<!--##### Run #####--> | ||
<dependency> | ||
<groupId>com.mpumd.poc</groupId> | ||
<artifactId>application</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-web</artifactId> | ||
</dependency> | ||
<dependency> <!-- openapi --> | ||
<groupId>org.springdoc</groupId> | ||
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId> | ||
</dependency> | ||
<dependency> <!-- swagger --> | ||
<groupId>org.springdoc</groupId> | ||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
2 changes: 1 addition & 1 deletion
2
...ing/exposition/rest/PersonController.java → .../poc/person/sb/rest/PersonController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.mpumd.poc</groupId> | ||
<artifactId>infra-spring</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>sb-out-jpa</artifactId> | ||
|
||
</project> |