springmvc返回map類型數據時報錯:java
java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.HashMapspring
緣由:spring沒有把map轉爲json數據格式的方法,須要引其餘jar包json
解決方法:poi中引入jar包mvc
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.0.pr4</version>
</dependency>xml
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.0.pr4</version>
</dependency>io