Required URI template variable 'code' for method parameter type Integer is not present
@PathVariable을 사용했는데 url에서 값을 받지 않아서 발생한 문제였다.
기존 코드: @GetMapping("/franchise")
@GetMapping("/franchise")
변경된 코드: @GetMapping("/franchise/{code}")
@GetMapping("/franchise/{code}")
{code}를 추가해 PathVariable을 받아 해결했다.
{code}