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
Solution:
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.