今天在用SSM框架实现学生信息管理系统启动tomcat时,报错如下:
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.web.multipart.commons.CommonsMultipartResolver] from ClassLoader [ParallelWebappClassLoader
context: StudentManager_war
经分析,出现上述错误是因为缺少commons-fileupload
和commons-io
依赖。
添加依赖后,错误解决,tomcat正常启动。
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>