Skip to content

Commit

Permalink
upgrade to spring boot 3.2.2 (#16)
Browse files Browse the repository at this point in the history
* upgrade to spring boot 3.2.2
  • Loading branch information
gtiwari333 authored Feb 4, 2024
1 parent b28a761 commit effb47f
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 50 deletions.
3 changes: 0 additions & 3 deletions main-app/main-orm/src/main/java/gt/app/domain/Comment.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.JoinColumn;
import lombok.Data;

import java.util.Objects;
Expand All @@ -16,10 +15,8 @@ public class Comment extends BaseAuditingEntity {
@Enumerated(EnumType.STRING)
private CommentStatus status = CommentStatus.AWAITING_APPROVAL;

@JoinColumn(nullable = false)
private Long articleId;

@JoinColumn(nullable = true)
private Long parentCommentId;

public Comment() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public interface CommentRepository extends AbstractRepository<Comment>, CommentR
void deleteByArticleId(Long id);

@Override
@CacheEvict(cacheNames = {"articleRead"}, key = "#c.articleId")
@CacheEvict(cacheNames = {"articleRead"}, key = "#result.articleId")
Comment save(Comment c);
}
2 changes: 1 addition & 1 deletion main-app/main-webapp/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spring:
datasource:
url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=MYSQL
jpa:
show-sql: false
show-sql: true
open-in-view: false
hibernate:
ddl-auto: none # we use liquibase
Expand Down
48 changes: 24 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.1</version>
<version>3.2.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand All @@ -30,7 +30,7 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>

<spring-boot.version>3.2.1</spring-boot.version>
<spring-boot.version>3.2.2</spring-boot.version>
<spring-cloud.version>2023.0.0</spring-cloud.version>
<hibernate-types60.version>2.21.1</hibernate-types60.version>
<hibernate-hypersistence-utils.version>3.6.1</hibernate-hypersistence-utils.version>
Expand All @@ -39,13 +39,13 @@
<springdoc-openapi-ui.version>2.3.0</springdoc-openapi-ui.version>
<mapstruct.version>1.6.0.Beta1</mapstruct.version>

<selenide.version>7.0.4</selenide.version>
<selenide.version>7.0.6</selenide.version>

<google-guava.version>33.0.0-jre</google-guava.version>
<wro4j.version>1.9.0</wro4j.version>
<archunit.version>1.2.1</archunit.version>
<testcontainers-keycloak.version>3.2.0</testcontainers-keycloak.version>
<testcontainers.version>1.19.3</testcontainers.version>
<testcontainers.version>1.19.4</testcontainers.version>
<commons-io.version>2.15.1</commons-io.version>
<webjar-jquery.version>3.6.1</webjar-jquery.version>
<webjar-bootstrap.version>5.0.1</webjar-bootstrap.version>
Expand Down Expand Up @@ -330,24 +330,24 @@
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<!-- <repositories>-->
<!-- <repository>-->
<!-- <id>spring-milestones</id>-->
<!-- <name>Spring Milestones</name>-->
<!-- <url>https://repo.spring.io/milestone</url>-->
<!-- <snapshots>-->
<!-- <enabled>false</enabled>-->
<!-- </snapshots>-->
<!-- </repository>-->
<!-- </repositories>-->
<!-- <pluginRepositories>-->
<!-- <pluginRepository>-->
<!-- <id>spring-milestones</id>-->
<!-- <name>Spring Milestones</name>-->
<!-- <url>https://repo.spring.io/milestone</url>-->
<!-- <snapshots>-->
<!-- <enabled>false</enabled>-->
<!-- </snapshots>-->
<!-- </pluginRepository>-->
<!-- </pluginRepositories>-->
</project>

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions trend/trend-service-api/src/main/resources/application.yml

This file was deleted.

2 changes: 1 addition & 1 deletion trend/trend-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spring:
active: '@spring.profiles.active@'

server:
port: 8083
port: 8084
logging:
level:
org.springframework.web: INFO
Expand Down

0 comments on commit effb47f

Please sign in to comment.