Page 1 of 1

Warum log4j denkt, mein Projekt läuft in der Servlet -Umgebung

Posted: 03 Apr 2025, 02:08
by Anonymous
Ich habe ein einfaches Java -Projekt (Maven). Das baut ein Glas auf und wir führen die Hauptmethode darauf aus. Aber wenn ich MVN Clean Test < /code> im Projekt ausführe

Code: Select all

INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
Die Datei log4j2.xml befindet sich in Src/Main/Ressourcen/log4j2.xml .>