框架学习

nested exception is java.lang.IllegalStateException: officeHome doesn't exist or

Invocation of init method failed; nested exception is java.lang.IllegalStateException: officeHome doesn't exist or is not a directory: /opt/libreoffice7.3

 

注释掉java文件头部的@Component,可以正常运行了,但是这不是根本解决办法。

//@Component
public class OfficeManagerInstance {

    @Value("${file.libre.startUp}")
    Integer startUp;

    @Value("${file.libre.libreOfficeHome}")
    String libreOfficeHome;

    @Value("${file.libre.portNumbers}")

。。。。。。