controller에서 action명이 겹쳤을 때 나는 오류

이태규·2022년 4월 15일
0

spring

목록 보기
55/64
org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'requestMappingHandlerMapping' 
defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/
WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: 
Invocation of init method failed; nested exception is 
java.lang.IllegalStateException: Ambiguous mapping. 
Cannot map 'sellerController' method
com.example.controller.SellerController#upadteAction
(Long[], String[], String[], Long[], Long[])
to {POST [/seller/upadteAction]}: There is already 'sellerController' bean method
com.example.controller.SellerController#postupadteAction
(MultipartFile, Model, User, ItemDTO) mapped.
profile
한 걸음씩 나아가자

0개의 댓글