Files
spring-boot-demo/graalvm-native-images/src/main/java/com/ankurm/graalvmdemo/HelloController.java
T
Claude 8cdfcd4d8d Add graalvm-native-images: Boot 4.1 + GraalVM CE for JDK 25, AOT processing,
the tracing agent, and a real reflection-collision trap

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EQNA6DJ9VgCtW6zhCE8Xud
2026-09-20 11:03:09 +00:00

19 lines
561 B
Java

package com.ankurm.graalvmdemo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* The baseline endpoint used for every startup-time and memory measurement in this chapter --
* deliberately trivial, so the numbers reflect the framework and the runtime, not application
* work. See docs/01-building-the-image.md.
*/
@RestController
public class HelloController {
@GetMapping("/hello")
public String hello() {
return "Hello from a GraalVM native image!";
}
}