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
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 10s
This commit is contained in:
@@ -45,7 +45,7 @@ public class DtoDownloadProxyController {
|
||||
}
|
||||
|
||||
@GetMapping("/dto-download/{dtoName}")
|
||||
public ResponseEntity<byte[]> download(@PathVariable String dtoName) {
|
||||
public ResponseEntity<byte[]> download(@PathVariable("dtoName") String dtoName) {
|
||||
byte[] workbook;
|
||||
try {
|
||||
// 생성된 엑셀 바이트를 그대로 브라우저에 전달한다.
|
||||
|
||||
@@ -36,9 +36,9 @@ public class KillSwitchController {
|
||||
*/
|
||||
@PostMapping("/{type}/{target}")
|
||||
public ResponseEntity<?> toggleKillSwitch(
|
||||
@PathVariable String type,
|
||||
@PathVariable String target,
|
||||
@RequestParam boolean state) {
|
||||
@PathVariable("type") String type,
|
||||
@PathVariable("target") String target,
|
||||
@RequestParam("state") boolean state) {
|
||||
|
||||
killSwitchService.toggleKillSwitch(type, target, state);
|
||||
|
||||
@@ -55,8 +55,8 @@ public class KillSwitchController {
|
||||
*/
|
||||
@DeleteMapping("/{type}/{target}")
|
||||
public ResponseEntity<?> removeKillSwitch(
|
||||
@PathVariable String type,
|
||||
@PathVariable String target) {
|
||||
@PathVariable("type") String type,
|
||||
@PathVariable("target") String target) {
|
||||
|
||||
killSwitchService.removeKillSwitch(type, target);
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ public class MockEimsHttpServer {
|
||||
|
||||
@PostMapping("/mock/http/{toolName:[a-z0-9_-]+}")
|
||||
public ResponseEntity<JsonNode> mockToolHttpResponse(
|
||||
@PathVariable String toolName,
|
||||
@PathVariable("toolName") String toolName,
|
||||
@RequestBody(required = false) JsonNode request) {
|
||||
ClassPathResource resource = new ClassPathResource("mock-responses/" + toolName + ".json");
|
||||
if (!resource.exists()) {
|
||||
|
||||
Reference in New Issue
Block a user