Spring 전환 최소 실행 골격 재검증 #4
1 changed files with 16 additions and 0 deletions
16
src/main/java/com/example/controller/HealthController.java
Normal file
16
src/main/java/com/example/controller/HealthController.java
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.example.controller;
|
||||||
|
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
public class HealthController {
|
||||||
|
|
||||||
|
@GetMapping("/health")
|
||||||
|
public ResponseEntity<Map<String, String>> health() {
|
||||||
|
return ResponseEntity.ok(Map.of("status", "UP"));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue