weixin_60977509 2021-09-02 15:55 采纳率: 100%
浏览 87
已结题

运行时出现依赖嵌套异常

一部分报错信息
Error creating bean with name 'commonController': Unsatisfied dependency expressed through field 'converter'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'localDocumentConverter' defined in class path resource [org/jodconverter/boot/autoconfigure/JodConverterLocalAutoConfiguration.class]: Unsatisfied dependency expressed through method 'localDocumentConverter' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'localOfficeManager' defined in class path resource [org/jodconverter/boot/autoconfigure/JodConverterLocalAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.jodconverter.office.OfficeManager]: Factory method 'localOfficeManager' threw exception; nested exception is java.lang.IllegalStateException: officeHome doesn't exist or is not a directory: D:\utils\openOffice\work

代码
@Autowired
private DocumentConverter converter; // 转换器

  • 写回答

3条回答 默认 最新

  • CSDN专家-sinJack 2021-09-02 16:02
    关注

    officeHome doesn't exist or is not a directory: D:\utils\openOffice\work
    检查一下这个错误。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 9月11日
  • 已采纳回答 9月3日
  • 创建了问题 9月2日