
[Spring] TypeError: Failed to execute 'fetch' on 'Window' : Request with GET/HEAD method cannot have body.
ยท
Backend/Spring Boot
Swagger์์ API๋ฅผ ํ
์คํธํ๋๋ฐ ์๋ฌ๊ฐ ๋ฌ๋ค! ๐ป ์๋ฌ ๋ฉ์์งFailed to execute 'fetch' on 'Window' : Request with GET/HEAD method cannot have body. ๐ ์์ธGet ๋ฐฉ์์ผ๋ก RequestBody๋ก ๋ณด๋ด๋ ค๊ณ ํ๋ ๊ฒ์ด ์์ธ์ด์๋ค. ์๋ฌด ์๊ฐ์์ด ์กฐํ๋๊น Get๋ฐฉ์์ผ๋ก ํด์ผ์ง~ ํ๋ค.. @GetMapping("/one") public ResponseEntity list(@RequestBody TicketReq ticketReq) { try { List list = ticketService.getTicketList(ticketReq); if (list != nul..