Skip to content

Commit 9f60ccc

Browse files
committed
spring boot 3.5 upgrade
1 parent 8a1fbe7 commit 9f60ccc

File tree

27 files changed

+87
-181
lines changed

27 files changed

+87
-181
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
target/
22
!.mvn/wrapper/maven-wrapper.jar
3+
application-default.yml
34

45
### STS ###
56
.apt_generated

common/src/main/java/gt/common/config/ReqLogFilter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
2121

2222
req.put("req.remoteHost", request.getRemoteHost());
2323

24-
if (request instanceof HttpServletRequest) {
25-
HttpServletRequest httpServletRequest = (HttpServletRequest) request;
24+
if (request instanceof HttpServletRequest httpServletRequest) {
2625
req.put("req.requestURI", httpServletRequest.getRequestURI());
2726
StringBuffer requestURL = httpServletRequest.getRequestURL();
2827
if (requestURL != null) {

common/src/main/java/gt/common/dtos/ArticleSummaryDto.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
import lombok.Setter;
55
import lombok.ToString;
66

7+
import java.io.Serial;
78
import java.io.Serializable;
89

910
@Getter
1011
@Setter
1112
@ToString
1213
public class ArticleSummaryDto implements Serializable {
1314

15+
@Serial
1416
private static final long serialVersionUID = -1007949715L;
1517

1618
private Long id;

content-checker/content-checker-service/pom.xml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@
5757
<optional>true</optional>
5858
<scope>provided</scope>
5959
</dependency>
60+
<dependency>
61+
<groupId>org.springdoc</groupId>
62+
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
63+
<version>${springdoc-openapi-ui.version}</version>
64+
<optional>true</optional>
65+
</dependency>
6066

6167
<!-- test dependencies -->
6268
<dependency>
@@ -98,24 +104,5 @@
98104
</plugins>
99105
</build>
100106

101-
<profiles>
102-
103-
<profile>
104-
<id>local</id>
105-
<dependencies>
106-
<dependency>
107-
<groupId>org.springdoc</groupId>
108-
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
109-
<version>${springdoc-openapi-ui.version}</version>
110-
<optional>true</optional>
111-
</dependency>
112-
</dependencies>
113-
<properties>
114-
<spring.profiles.active>local</spring.profiles.active>
115-
<build.profile>local</build.profile>
116-
</properties>
117-
</profile>
118-
119-
</profiles>
120107

121108
</project>
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
spring:
2-
profiles:
3-
active: local

content-checker/content-checker-service/src/main/resources/application.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
spring:
22
application:
33
name: Trend-Service
4-
profiles:
5-
# The commented value for `active` can be replaced with valid spring profiles to load.
6-
# Otherwise, it will be filled in by maven when building the WAR file
7-
# Either way, it can be overridden by `--spring.profiles.active` value passed in the commandline or `-Dspring.profiles.active` set in `JAVA_OPTS`
8-
active: '@spring.profiles.active@'
94
artemis:
105
user: ${ACTIVEMQ_ARTEMIS_USER:admin}
116
password: ${ACTIVEMQ_ARTEMIS_PASSWORD:admin}

docker/docker-compose-dev.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# use this to run dependencies like activemq, email, mysql, keycloak using docker for DEVELOPMENT
2+
# Run using : $docker compose -f docker-compose-dev.yml up
23
version: '3'
34
services:
45
activemq_artemis:
@@ -49,13 +50,13 @@ services:
4950
- "KEYCLOAK_ADMIN_PASSWORD=admin"
5051
- "KEYCLOAK_FEATURES=scripts"
5152
- "KEYCLOAK_HTTP_PORT=8080"
52-
- "KEYCLOAK_HTTPS_PORT=9443"
53+
- "KEYCLOAK_HTTPS_PORT=9445"
5354
# entrypoint: /tmp/keycloak/config/docker-compose-entrypoint.sh --hostname host.docker.internal:8080
5455
volumes:
5556
- ../main-app/main-webapp/src/main/resources/keycloak/:/opt/keycloak/data/import
5657
ports:
5758
- 8080:8080
58-
- 9443:9443
59+
- 9445:9445
5960
networks:
6061
- gtapp-network
6162
volumes:

docker/docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# this is used to build docker images
12
version: '3'
23
services:
34
localhost: #expose all container ports so they can use services using localhost:PORT
@@ -48,14 +49,12 @@ services:
4849
- "KEYCLOAK_ADMIN_PASSWORD=admin"
4950
- "KEYCLOAK_FEATURES=scripts"
5051
- "KEYCLOAK_HTTP_PORT=8080"
51-
- "KEYCLOAK_HTTPS_PORT=9443"
52+
- "KEYCLOAK_HTTPS_PORT=9445"
5253
volumes:
5354
- ../main-app/main-webapp/src/main/resources/keycloak/:/opt/keycloak/data/import
5455
network_mode: "service:localhost"
5556
content-checker-service:
5657
image: gtapp-content-checker-service:latest
57-
environment:
58-
- "ZIPKIN_HOST=zipkin"
5958
network_mode: "service:localhost"
6059
depends_on:
6160
- zipkin

email/email-service-api/src/main/resources/application.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
spring:
22
application:
33
name: Report Service
4-
profiles:
5-
# The commented value for `active` can be replaced with valid spring profiles to load.
6-
# Otherwise, it will be filled in by maven when building the WAR file
7-
# Either way, it can be overridden by `--spring.profiles.active` value passed in the commandline or `-Dspring.profiles.active` set in `JAVA_OPTS`
8-
active: '@spring.profiles.active@'
94

105
server:
116
port: 8086

email/email-service/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
<properties>
1616
<app.version>${project.parent.version}</app.version>
17+
<spring-cloud.version>2025.0.0</spring-cloud.version>
1718
</properties>
1819

1920

@@ -81,12 +82,10 @@
8182
<dependency>
8283
<groupId>org.testcontainers</groupId>
8384
<artifactId>testcontainers</artifactId>
84-
<version>${testcontainers.version}</version>
8585
</dependency>
8686
<dependency>
8787
<groupId>org.testcontainers</groupId>
8888
<artifactId>junit-jupiter</artifactId>
89-
<version>${testcontainers.version}</version>
9089
</dependency>
9190

9291
<!-- test only dependencies -->

0 commit comments

Comments
 (0)