From e4e9c02a99911da2d765be86f8035978f5d87830 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 05:22:44 +0000 Subject: [PATCH 1/6] forge: open work branch for role-developer-reverify-001-attempt-1-run-91dbb119003d --- .../role-developer-reverify-001-attempt-1-run-91dbb119003d.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/role-developer-reverify-001-attempt-1-run-91dbb119003d.md diff --git a/.forge/role-developer-reverify-001-attempt-1-run-91dbb119003d.md b/.forge/role-developer-reverify-001-attempt-1-run-91dbb119003d.md new file mode 100644 index 0000000..86eddda --- /dev/null +++ b/.forge/role-developer-reverify-001-attempt-1-run-91dbb119003d.md @@ -0,0 +1,3 @@ +# role-developer-reverify-001-attempt-1-run-91dbb119003d + +Forge 이슈 작업 브랜치 `forge/role-developer-reverify-001-attempt-1-run-91dbb119003d`. -- 2.49.1 From 8379c6702a3c71db847d199503fdef90b1cbaf42 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 05:22:57 +0000 Subject: [PATCH 2/6] =?UTF-8?q?Spring=20=EC=A0=84=ED=99=98=20=EC=B5=9C?= =?UTF-8?q?=EC=86=8C=20=EC=8B=A4=ED=96=89=20=EA=B3=A8=EA=B2=A9=20=EC=9E=AC?= =?UTF-8?q?=EA=B2=80=EC=A6=9D=20(role-developer-reverify-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..35654ff --- /dev/null +++ b/pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 3.3.0 + + + + com.example + spring-minimal + 1.0.0 + jar + Spring Minimal Application + Minimum compilable Spring Boot application skeleton + + + 17 + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + \ No newline at end of file -- 2.49.1 From 6d85fec6e0a8e4a5c902f6773d2319f9fd5046dd Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 05:22:58 +0000 Subject: [PATCH 3/6] =?UTF-8?q?Spring=20=EC=A0=84=ED=99=98=20=EC=B5=9C?= =?UTF-8?q?=EC=86=8C=20=EC=8B=A4=ED=96=89=20=EA=B3=A8=EA=B2=A9=20=EC=9E=AC?= =?UTF-8?q?=EA=B2=80=EC=A6=9D=20(role-developer-reverify-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/SpringMinimalApplication.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/main/java/com/example/SpringMinimalApplication.java diff --git a/src/main/java/com/example/SpringMinimalApplication.java b/src/main/java/com/example/SpringMinimalApplication.java new file mode 100644 index 0000000..92bee90 --- /dev/null +++ b/src/main/java/com/example/SpringMinimalApplication.java @@ -0,0 +1,12 @@ +package com.example; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SpringMinimalApplication { + + public static void main(String[] args) { + SpringApplication.run(SpringMinimalApplication.class, args); + } +} -- 2.49.1 From 640c4312a6f440b94c60ef4124d96dca6b828f4e Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 05:23:00 +0000 Subject: [PATCH 4/6] =?UTF-8?q?Spring=20=EC=A0=84=ED=99=98=20=EC=B5=9C?= =?UTF-8?q?=EC=86=8C=20=EC=8B=A4=ED=96=89=20=EA=B3=A8=EA=B2=A9=20=EC=9E=AC?= =?UTF-8?q?=EA=B2=80=EC=A6=9D=20(role-developer-reverify-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/controller/HealthController.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/main/java/com/example/controller/HealthController.java diff --git a/src/main/java/com/example/controller/HealthController.java b/src/main/java/com/example/controller/HealthController.java new file mode 100644 index 0000000..fcdbc96 --- /dev/null +++ b/src/main/java/com/example/controller/HealthController.java @@ -0,0 +1,23 @@ +package com.example.controller; + +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.Map; + +@RestController +@RequestMapping("/api") +public class HealthController { + + @GetMapping("/health") + public ResponseEntity> health() { + return ResponseEntity.ok(Map.of("status", "UP")); + } + + @GetMapping("/ping") + public ResponseEntity ping() { + return ResponseEntity.ok("pong"); + } +} -- 2.49.1 From 2642235adf8bea746f38b5cd1a4db03b8b49a9ff Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 05:23:01 +0000 Subject: [PATCH 5/6] =?UTF-8?q?Spring=20=EC=A0=84=ED=99=98=20=EC=B5=9C?= =?UTF-8?q?=EC=86=8C=20=EC=8B=A4=ED=96=89=20=EA=B3=A8=EA=B2=A9=20=EC=9E=AC?= =?UTF-8?q?=EA=B2=80=EC=A6=9D=20(role-developer-reverify-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/HealthControllerTest.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/test/java/com/example/controller/HealthControllerTest.java diff --git a/src/test/java/com/example/controller/HealthControllerTest.java b/src/test/java/com/example/controller/HealthControllerTest.java new file mode 100644 index 0000000..efdf474 --- /dev/null +++ b/src/test/java/com/example/controller/HealthControllerTest.java @@ -0,0 +1,31 @@ +package com.example.controller; + +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; +import org.springframework.test.web.servlet.MockMvc; + +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; + +@WebMvcTest(HealthController.class) +class HealthControllerTest { + + @Autowired + private MockMvc mockMvc; + + @Test + void health_returnsUpStatus() throws Exception { + mockMvc.perform(get("/api/health")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.status").value("UP")); + } + + @Test + void ping_returnsPong() throws Exception { + mockMvc.perform(get("/api/ping")) + .andExpect(status().isOk()) + .andExpect(org.hamcrest.Matchers.content().string("pong")); + } +} -- 2.49.1 From b8c0e7e9f7d1fff1af277648e8f2f2d7f27fc1dc Mon Sep 17 00:00:00 2001 From: forge-bot Date: Tue, 14 Jul 2026 05:23:02 +0000 Subject: [PATCH 6/6] =?UTF-8?q?Spring=20=EC=A0=84=ED=99=98=20=EC=B5=9C?= =?UTF-8?q?=EC=86=8C=20=EC=8B=A4=ED=96=89=20=EA=B3=A8=EA=B2=A9=20=EC=9E=AC?= =?UTF-8?q?=EA=B2=80=EC=A6=9D=20(role-developer-reverify-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/SpringMinimalApplicationTests.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/java/com/example/SpringMinimalApplicationTests.java diff --git a/src/test/java/com/example/SpringMinimalApplicationTests.java b/src/test/java/com/example/SpringMinimalApplicationTests.java new file mode 100644 index 0000000..3d8d318 --- /dev/null +++ b/src/test/java/com/example/SpringMinimalApplicationTests.java @@ -0,0 +1,15 @@ +package com.example; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.TestPropertySource; + +@SpringBootTest +@TestPropertySource(properties = {"spring.main.allow-bean-definition-overriding=true"}) +class SpringMinimalApplicationTests { + + @Test + void contextLoads() { + // Verifies that the Spring context loads successfully + } +} -- 2.49.1