fix(aria): enable Spring Data page DTO serialization for consistent pagination JSON
CD - Develop / build-and-deploy (push) Failing after 11m57s
CD - Production / build-and-deploy (push) Failing after 13m10s

Without @EnableSpringDataWebSupport(VIA_DTO) the API returned totalElements
at the top level. Frontend expects {content, page: {totalElements, totalPages,
number}} — the DTO format. Fixes Load Failed on all paginated pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 17:00:27 -04:00
parent 02d99c8ca2
commit 23a36cd824
@@ -3,11 +3,13 @@ package com.hiveops.aria;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.web.config.EnableSpringDataWebSupport;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication
@EnableCaching
@EnableScheduling
@EnableSpringDataWebSupport(pageSerializationMode = EnableSpringDataWebSupport.PageSerializationMode.VIA_DTO)
public class AriaApplication {
public static void main(String[] args) {
SpringApplication.run(AriaApplication.class, args);