feat(api, build): Upgrade to Java 25, Gradle 9, and Spring Boot 4, Jackson 3 (#2597)
* refactor: simplify RestTemplate and ObjectMapper configurations, add no-args constructors to progress classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * chore: update Gradle and Java versions in Docker configuration and build files Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * test: enhance header assertions in tests and add spring-boot-test-autoconfigure dependency Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(tests): migrate to SpringBootTest and update entity management in test cases Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * test: update test property configurations for H2 database in Healthcheck and BookOpds repository tests Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * test: clean up HealthcheckControllerTest by removing unnecessary whitespace and comments Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * test: remove unnecessary whitespace in HealthcheckControllerTest Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * chore: downgrade Flyway version from 12.0.0 to 11.14.1 in build.gradle Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * chore: downgrade Flyway version from 12.0.0 to 11.14.1 in build.gradle Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add @DependsOn annotation for Flyway in MultipartConfig Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add @DependsOn annotation for Flyway in LibraryService Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add test configuration for Flyway in HealthcheckControllerTest chore: remove unused path variable in deleteLibrary method of LibraryService Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: configure Flyway migration and update test configuration Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: enable remote debugging in bootRun configuration Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: update Flyway version and enhance ObjectMapper configuration Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: remove @DependsOn annotation for Flyway in MultipartConfig and LibraryService Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add NoArgsConstructor and AllArgsConstructor annotations to DTO classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add NoArgsConstructor and AllArgsConstructor annotations to FileProcessResult, MetadataUpdateContext, and MetadataUpdateWrapper classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add DependsOnDatabaseInitialization annotation to MultipartConfig, AppSettingService, LibraryService, and JwtSecretService classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add DependsOnDatabaseInitialization annotation to MultipartConfig and CronService classes Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: implement lazy initialization and thread safety for JWT secret retrieval Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add Flyway dependency and update LibraryService initialization to use ApplicationReadyEvent Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor: remove outdated comments from JwtSecretService class Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor: migrate from com.fasterxml.jackson to tools.jackson for JSON processing Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor: remove unused ObjectMapper bean and related imports from JacksonConfig Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: configure async support with VirtualThreadTaskExecutor in WebMvcConfig Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: enhance application performance with virtual threads and HTTP/2 support Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add JsonSetter annotation to skip null values for triggeredByCron field Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: add triggeredByCron field to TaskCreateRequest and initialize in task management Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat: enable Spring Data web support with DTO serialization in WebMvcConfig Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(UserDefaultsService): simplify class structure and remove unused methods Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(BookOpdsRepositoryDataJpaTest): simplify test setup and use TestEntityManager Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(BookOpdsRepositoryDataJpaTest): update test configuration and simplify entity persistence Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor: update Jackson dependencies and migrate to Jackson 3 Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(build.gradle): update jackson-annotations dependency to use Jackson 3 BOM Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(BookOpdsRepositoryDataJpaTest): remove unused ObjectMapper bean definition Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * refactor(LibraryService): simplify library deletion logic Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> --------- Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
@@ -38,10 +38,12 @@ spring:
|
||||
username: ${DATABASE_USERNAME:root}
|
||||
password: ${DATABASE_PASSWORD:${MYSQL_ROOT_PASSWORD}}
|
||||
hikari:
|
||||
pool-name: BookloreHikariPool
|
||||
max-lifetime: 580000 # 9.6 minutes (avoid DB-side connection cuts)
|
||||
connection-test-query: SELECT 1
|
||||
maximum-pool-size: 10 # Allows bursts
|
||||
minimum-idle: 1 # Shrinks when idle
|
||||
connection-timeout: 30000 # 30s to acquire a connection before timeout
|
||||
maximum-pool-size: 20 # Higher ceiling for virtual-thread bursts
|
||||
minimum-idle: 5 # Keep warm connections ready
|
||||
idle-timeout: 300000 # 5 minutes before idle connections are closed
|
||||
jpa:
|
||||
hibernate:
|
||||
@@ -50,10 +52,15 @@ spring:
|
||||
show-sql: false
|
||||
properties:
|
||||
hibernate:
|
||||
query:
|
||||
timeout: 30 # 30s max for any HQL/JPQL query
|
||||
jdbc:
|
||||
batch_size: 500
|
||||
order_inserts: true
|
||||
order_updates: true
|
||||
threads:
|
||||
virtual:
|
||||
enabled: true
|
||||
flyway:
|
||||
enabled: true
|
||||
locations: classpath:db/migration
|
||||
|
||||
Reference in New Issue
Block a user