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
19 lines
561 B
Java
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!";
|
|
}
|
|
}
|