Failed to introspect Class CommonsMultipartResolver

配置了上传文件大小和编码后,重启Servlet报错:Failed to introspect Class CommonsMultipartResolver
<!-- 文件上传 -->
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
    <!-- 上传文件大小10M -->
    <property name="maxUploadSize">
        <value>10240000</value>
    </property>
    <!-- 请求的编码格式,必须与视图文件的pageEncoding属性一致 -->
    <property name="defaultEncoding">
        <value>UTF-8</value>
    </property>
</bean>
发生这个错误的原因是缺少jar包:
commons-fileupload
然后还会缺少Apache Commons IO
下载并添加即可