java.lang.IllegalStateException: Logback configuration error detected

Recently, due to the integration of spring boot and log4j2 in the company’s project, the project cannot run

Error reporting reason:

    Logback configuration error:

Error code:

It is obvious that the logback configuration is wrong


    Error path: C: \ users \ administrator \ desktop \ log \ error \ log_ error.log     Obviously, my current administrator name is admin, and the logback.xml file is in the configuration

Because it is the administrator, it cannot create the log file path. It needs to be changed to: C:// users// admin// desktop// log run again


  OK, perfect operation.


Read More: