Skip to content

Commit 872604b

Browse files
committed
Improve backend-springboot
1 parent 6ba3ddd commit 872604b

File tree

9 files changed

+40
-47
lines changed

9 files changed

+40
-47
lines changed

backend-springboot/pom.xml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5+
56
<parent>
67
<groupId>org.springframework.boot</groupId>
78
<artifactId>spring-boot-starter-parent</artifactId>
89
<version>3.5.3</version>
910
</parent>
11+
1012
<groupId>com.ganatan</groupId>
1113
<artifactId>backend-springboot</artifactId>
1214
<version>1.0.0</version>
1315
<name>backend-springboot</name>
1416
<description>Demo project for Spring Boot</description>
15-
<url/>
17+
<url />
1618
<licenses>
17-
<license/>
19+
<license />
1820
</licenses>
1921
<developers>
20-
<developer/>
22+
<developer />
2123
</developers>
2224
<scm>
23-
<connection/>
24-
<developerConnection/>
25-
<tag/>
26-
<url/>
25+
<connection />
26+
<developerConnection />
27+
<tag />
28+
<url />
2729
</scm>
30+
2831
<properties>
2932
<java.version>21</java.version>
30-
<checkstyle.version>10.26.1</checkstyle.version>
33+
<checkstyle.version>11.0.1</checkstyle.version>
3134
<maven.checkstyle.plugin.version>3.6.0</maven.checkstyle.plugin.version>
3235
</properties>
36+
3337
<dependencies>
3438
<dependency>
3539
<groupId>org.springframework.boot</groupId>
@@ -58,8 +62,6 @@
5862
<artifactId>spring-boot-starter-test</artifactId>
5963
<scope>test</scope>
6064
</dependency>
61-
62-
6365
<dependency>
6466
<groupId>org.springframework.boot</groupId>
6567
<artifactId>spring-boot-starter-actuator</artifactId>
@@ -68,31 +70,24 @@
6870
<groupId>io.micrometer</groupId>
6971
<artifactId>micrometer-registry-prometheus</artifactId>
7072
</dependency>
71-
72-
7373
</dependencies>
7474

7575
<build>
76-
7776
<plugins>
78-
7977
<plugin>
8078
<groupId>org.springframework.boot</groupId>
8179
<artifactId>spring-boot-maven-plugin</artifactId>
8280
</plugin>
83-
8481
<plugin>
8582
<groupId>org.jacoco</groupId>
8683
<artifactId>jacoco-maven-plugin</artifactId>
8784
<version>0.8.11</version>
8885
<executions>
89-
<!-- Agent JaCoCo avant les tests -->
9086
<execution>
9187
<goals>
9288
<goal>prepare-agent</goal>
9389
</goals>
9490
</execution>
95-
<!-- Génération du rapport après les tests -->
9691
<execution>
9792
<id>report</id>
9893
<phase>test</phase>
@@ -102,7 +97,6 @@
10297
</execution>
10398
</executions>
10499
</plugin>
105-
106100
<plugin>
107101
<groupId>org.apache.maven.plugins</groupId>
108102
<artifactId>maven-checkstyle-plugin</artifactId>
@@ -120,12 +114,7 @@
120114
</dependency>
121115
</dependencies>
122116
</plugin>
123-
124-
125117
</plugins>
126-
127118
</build>
128-
129-
130119

131120
</project>

backend-springboot/src/main/java/com/ganatan/backend_java/modules/person/AlreadyExistsException.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66
@ResponseStatus(HttpStatus.CONFLICT)
77
public class AlreadyExistsException extends RuntimeException {
8-
public AlreadyExistsException(String message) {
9-
super(message);
10-
}
8+
9+
private static final long serialVersionUID = 1L;
10+
11+
public AlreadyExistsException(String message) {
12+
super(message);
13+
}
1114
}

backend-springboot/src/main/java/com/ganatan/backend_java/modules/person/NotFoundException.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66
@ResponseStatus(HttpStatus.NOT_FOUND)
77
public class NotFoundException extends RuntimeException {
8-
public NotFoundException(String message) {
9-
super(message);
10-
}
8+
9+
private static final long serialVersionUID = 1L;
10+
11+
public NotFoundException(String message) {
12+
super(message);
13+
}
1114
}

backend-springboot/src/main/java/com/ganatan/backend_java/modules/person/PersonController.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
import org.springframework.http.HttpStatus;
44
import org.springframework.web.bind.annotation.*;
55

6-
import com.ganatan.backend_java.modules.person.AlreadyExistsException;
7-
import com.ganatan.backend_java.modules.person.NotFoundException;
8-
96
import java.util.List;
107

118
@RestController

backend-springboot/src/main/java/com/ganatan/backend_java/modules/person/PersonService.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
import org.springframework.stereotype.Service;
44

5-
import com.ganatan.backend_java.modules.person.AlreadyExistsException;
6-
import com.ganatan.backend_java.modules.person.NotFoundException;
7-
85
import java.util.List;
96

107
@Service

frontend-angular-ai/llm-connector/backend-springboot/pom.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<project xmlns="http://maven.apache.org/POM/4.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
6+
http://maven.apache.org/xsd/maven-4.0.0.xsd">
7+
48
<modelVersion>4.0.0</modelVersion>
59

610
<parent>

frontend-angular/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@angular/compiler-cli": "20.3.0",
4242
"@types/express": "5.0.3",
4343
"@types/jasmine": "5.1.9",
44-
"@types/node": "24.3.1",
44+
"@types/node": "24.3.3",
4545
"angular-eslint": "20.2.0",
4646
"eslint": "9.35.0",
4747
"jasmine-core": "5.10.0",

frontend-angular/src/environments/environment.development.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export const environment = {
88
},
99
urlNews: './assets/params/json/mock/trailers.json',
1010
urlMovies: './assets/params/json/mock/movies.json',
11-
useMock: false,
11+
useMock: true,
1212
backend: 'http://localhost:3000',
1313
};

0 commit comments

Comments
 (0)