파라미터 이름과 일치할 경우, 중복된 @PathVariable 이름 선언을 보고합니다.
빠른 수정은 주석에서 명시적인 이름 속성을 제거합니다.
예:
@GetMapping("/{orderId}")
public Order getOrder(@PathVariable("orderId") Long orderId)
return return orderRepository.findOne(orderId);
}
빠른 수정이 적용된 후 결과는 다음과 같습니다.
@GetMapping("/{orderId}")
public Order getOrder(@PathVariable Long orderId)
return orderRepository.findOne(orderId);
}