Error

[Error][Springboot] java.lang.IllegalStateException: Ambiguous mapping.

오선지♬ 2024. 7. 27. 11:38
728x90
반응형

Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'contractMngController' method salesinsight.nxtlvl.module.api.basic_contractMng.controller.ContractMngController#getContractItems(String, String, String) to {GET [/api/contractMng/contract/{crCd}/items], produces [application/json;charset=utf-8]}: There is already 'contractMngController' bean method salesinsight.nxtlvl.module.api.basic_contractMng.controller.ContractMngController#getContractItemsForMr(Integer, Integer, Integer, String, String, String, String, String) mapped.

 

 

 

  • getContractItems(String, String, String)
  • getContractItemsForMr(Integer, Integer, Integer, String, String, String, String,

두 방법 모두에 매핑됩니다 GET /api/contractMng/contract/{crCd}/items.

 

경로가 겹쳐서 발생한 오류.

 

728x90
반응형