Files
spring-boot-demo/aot-cache/src/main/java/com/ankurm/aotcache/NewOrder.java
T
Claude 3e2029ab3a Add aot-cache module: the JDK 25 AOT cache on Spring Boot 4.1 vs AppCDS, Spring AOT and GraalVM native
A Spring Boot 4.1.1 order service started 12 ways (plain and extracted jar, Spring AOT output, AppCDS, AOT cache trained with and without traffic, JDK 27, native image), ten interleaved rounds each, with first-request latency; 24 cache-mismatch cases; Docker layer arithmetic. Transcripts are in output/ (no docs/ folder).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TF9JWFvJSNm6HVzswzZU5a
2026-09-24 16:44:16 +00:00

15 lines
531 B
Java

package com.ankurm.aotcache;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
/** The request body of POST /orders. Bean Validation and Jackson both have to work on it. */
public record NewOrder(
@NotBlank @Email String customer,
@NotBlank @Pattern(regexp = "[A-Z]{3}-[0-9]{4}") String sku,
@Min(1) @Max(1000) int quantity) {
}