Failed to process import candidates for configuration class

前端 未结 5 1896
北海茫月
北海茫月 2020-12-02 23:55

I\'ve a spring boot project that I can run successfully from within IntelliJ, but when I package an executable jar I can no longer run it. Here is the stack trace of the exc

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 00:03

    I've also gotten the

    Failed to process import candidates for configuration class [...]; nested exception is java.lang.IllegalStateException: Unable to read meta-data for class ...

    error due to a typo in my spring.factories file. In this case the root exception was

    class path resource [...] cannot be opened because it does not exist.

    This is an important spot to check since it can't be validated at compile time.

提交回复
热议问题