springmvc返回map类型数据时报错:
java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.HashMap
原因:spring没有把map转为json数据格式的方法,需要引其他jar包
解决方法:poi中引入jar包
<dependency>
<groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.9.0.pr4</version> </dependency><dependency>
<groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.0.pr4</version> </dependency>