만족도에 파일 업로드
- 작성자 :
- 김*윤
- 작성일 :
- 2010-07-16 17:55:03
- 조회수 :
- 3,398
- 구분 :
- 공통컴포넌트
- 진행상태 :
- 완료
Q
@RequestMapping("/cop/bbs/insertSatisfaction.do")
public String insertSatisfaction(MultipartHttpServletRequest multiRequest,
@ModelAttribute("searchVO") SatisfactionVO satisfactionVO
만족도 등록부분인데요. 첨부파일을 같이 등록하고 싶어서 저렇게 추가했는데 에러나네요.
Failed to invoke handler method [public java.lang.String egovframework.com.cop.bbs.web.EgovBBSSatisfactionController.insertSatisfaction(org.springframework.web.multipart.MultipartHttpServletRequest,egovframework.com.cop.bbs.service.SatisfactionVO,egovframework.com.cop.bbs.service.Satisfaction,org.springframework.validation.BindingResult,org.springframework.ui.ModelMap) throws java.lang.Exception]; nested exception is java.lang.IllegalStateException: Standard argument type [org.springframework.web.multipart.MultipartHttpServletRequest] resolved to incompatible value of type [class org.springframework.security.wrapper.SavedRequestAwareWrapper]. Consider declaring the argument type in a less specific fashion.
저 메서드 내로 들어오지도 못하는거 같습니다. 메서드 선언을 뭐 잘못한건지.. 알수가 없네요. 첫분째 인자로 MultipartHttpServletRequest multiRequest 추가한것뿐이 없는데 말이죠....
public String insertSatisfaction(MultipartHttpServletRequest multiRequest,
@ModelAttribute("searchVO") SatisfactionVO satisfactionVO
만족도 등록부분인데요. 첨부파일을 같이 등록하고 싶어서 저렇게 추가했는데 에러나네요.
Failed to invoke handler method [public java.lang.String egovframework.com.cop.bbs.web.EgovBBSSatisfactionController.insertSatisfaction(org.springframework.web.multipart.MultipartHttpServletRequest,egovframework.com.cop.bbs.service.SatisfactionVO,egovframework.com.cop.bbs.service.Satisfaction,org.springframework.validation.BindingResult,org.springframework.ui.ModelMap) throws java.lang.Exception]; nested exception is java.lang.IllegalStateException: Standard argument type [org.springframework.web.multipart.MultipartHttpServletRequest] resolved to incompatible value of type [class org.springframework.security.wrapper.SavedRequestAwareWrapper]. Consider declaring the argument type in a less specific fashion.
저 메서드 내로 들어오지도 못하는거 같습니다. 메서드 선언을 뭐 잘못한건지.. 알수가 없네요. 첫분째 인자로 MultipartHttpServletRequest multiRequest 추가한것뿐이 없는데 말이죠....
A
안녕하세요.. 김태윤님..
JSP의 form에 enctype에 대한 정보를 추가하시면 될 것 같습니다.
<form:form ... enctype="multipart/form-data">
그럼.. 즐거운 하루되십시오.
감사합니다.
JSP의 form에 enctype에 대한 정보를 추가하시면 될 것 같습니다.
<form:form ... enctype="multipart/form-data">
그럼.. 즐거운 하루되십시오.
감사합니다.