DS's『 행복합시다 』

Carpe Programming/eGovFramework

[전자정부프레임워크] Consider declaring the argument type in a less specific fashion.

nolite 2011. 8. 29. 10:36
반응형

[Question]

가이드의 파일관리를 보고 작성중입니다.

context-common.xml
context-properties.xml

두가지는 잘 입력 하였습니다.

@RequestMapping
public String addFind(
        final MultipartHttpServletRequest multiRequest
        ,Map commandMap
        ,Model model
        ,SessionStatus status
)throws Exception {

}

컨트롤러에서는 이런식으로 작성되어 있는데 처음 함수 호출 되는 즉시 에러가 납니다.

java.lang.IllegalStateException: Standard argument type [org.springframework.web.multipart.MultipartHttpServletRequest] resolved to incompatible value of type [class egovframework.rte.ptl.mvc.filter.HTMLTagFilterRequestWrapper]. Consider declaring the argument type in a less specific fashion.

어떤게 문제일까요..

<from eGovframe Portal Q&A>


[Answer]


우선.. 입력 JSP의 form에 다음과 같이 enctype 속성이 등록되었는지 확인해 보십시오.

&lt;form ... enctype=&quot;multipart/form-data&quot;&gt;

그래도 오류가 발생하면 web.xml에 있는 HTMLTagFilter filter 설정을 삭제하시기 바랍니다.
(HTMLTagFilter filter는 &quot;&lt;&quot;와 같은 tag를 &quot;&lt;&quot;와 같이 변환하여 처리하는 것으로 첨부의 경우 무시되고, 일반 적인 경우는 &lt;c:out ../&gt;을 통해 변환되기 때문에 특별한 경우 이외에는 필요치 않습니다.)

그럼.. 즐거운 하루되십시오.
감사합니다.

<from eGovframe Portal Q&A>
- answered by portal admin.

11.04.04-18:53:34

728x90
반응형