fix: add explicit names to all @PathVariable and @RequestParam to support legacy compilers without -parameters flag
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 10s

This commit is contained in:
jade
2026-09-01 16:42:19 +09:00
parent 1efd8617a7
commit f9b96bf7ab
3 changed files with 7 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ public class DtoDownloadProxyController {
} }
@GetMapping("/dto-download/{dtoName}") @GetMapping("/dto-download/{dtoName}")
public ResponseEntity<byte[]> download(@PathVariable String dtoName) { public ResponseEntity<byte[]> download(@PathVariable("dtoName") String dtoName) {
byte[] workbook; byte[] workbook;
try { try {
// 생성된 엑셀 바이트를 그대로 브라우저에 전달한다. // 생성된 엑셀 바이트를 그대로 브라우저에 전달한다.

View File

@@ -36,9 +36,9 @@ public class KillSwitchController {
*/ */
@PostMapping("/{type}/{target}") @PostMapping("/{type}/{target}")
public ResponseEntity<?> toggleKillSwitch( public ResponseEntity<?> toggleKillSwitch(
@PathVariable String type, @PathVariable("type") String type,
@PathVariable String target, @PathVariable("target") String target,
@RequestParam boolean state) { @RequestParam("state") boolean state) {
killSwitchService.toggleKillSwitch(type, target, state); killSwitchService.toggleKillSwitch(type, target, state);
@@ -55,8 +55,8 @@ public class KillSwitchController {
*/ */
@DeleteMapping("/{type}/{target}") @DeleteMapping("/{type}/{target}")
public ResponseEntity<?> removeKillSwitch( public ResponseEntity<?> removeKillSwitch(
@PathVariable String type, @PathVariable("type") String type,
@PathVariable String target) { @PathVariable("target") String target) {
killSwitchService.removeKillSwitch(type, target); killSwitchService.removeKillSwitch(type, target);

View File

@@ -33,7 +33,7 @@ public class MockEimsHttpServer {
@PostMapping("/mock/http/{toolName:[a-z0-9_-]+}") @PostMapping("/mock/http/{toolName:[a-z0-9_-]+}")
public ResponseEntity<JsonNode> mockToolHttpResponse( public ResponseEntity<JsonNode> mockToolHttpResponse(
@PathVariable String toolName, @PathVariable("toolName") String toolName,
@RequestBody(required = false) JsonNode request) { @RequestBody(required = false) JsonNode request) {
ClassPathResource resource = new ClassPathResource("mock-responses/" + toolName + ".json"); ClassPathResource resource = new ClassPathResource("mock-responses/" + toolName + ".json");
if (!resource.exists()) { if (!resource.exists()) {