Failed to write HTTP message:

org.springframework.http.converter.HttpMessageNotWritableException:

Could not write content: (was java.lang.NullPointerException)

需要添加jar包,荐使用woodstox-core-asl(Spring官方也推荐这个):

<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>woodstox-core-asl</artifactId>
<version>4.4.1</version>
</dependency>
因此添加上面的woodstox-core-asl依赖即可解决问题。
05-06 17:36