Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DenisNikashin/741061690320b42c473b9c6b2f225fff to your computer and use it in GitHub Desktop.
Save DenisNikashin/741061690320b42c473b9c6b2f225fff to your computer and use it in GitHub Desktop.
method getAllCustomers()
Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'customerRestControllerVersion1' method
public org.springframework.http.ResponseEntity<java.util.List<com.restExample.customerDemo.model.Customer>> com.restExample.customerDemo.controller.CustomerRestControllerVersion1.getAllCustomers()
to {[/api/version1/customers/],methods=[GET],produces=[application/json;charset=UTF-8]}: There is already 'customerRestControllerVersion1' bean method
public org.springframework.http.ResponseEntity<com.restExample.customerDemo.model.Customer> com.restExample.customerDemo.controller.CustomerRestControllerVersion1.saveCustomer(com.restExample.customerDemo.model.Customer) mapped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment