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
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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!";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user