매개변수 이름과 일치할 경우, 불필요한 @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);
}