用poi解析word,引入了poi的依赖: 报错: 查看apache官网,发现poi解析word,doc格式,还需要引入poi-scratchpad。docx格式,要引入poi-ooxml。 引入如下,就可以了。