我们正在使用slf4j构建新的systen作为日志记录.在新的Weblogic 12c上部署时,我们在控制台日志中发现了这个错误:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/Oracle/Middleware2/modules/org.slf4j.jdk14_1.6.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [zip:/opt/Oracle/Middleware2/user_projects/domains/m3/servers/AdminServer/tmp/_WL_user/test/t030q4/war/WEB-INF/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
Run Code Online (Sandbox Code Playgroud)
在谷歌搜索之后,我们发现这只是一个警告,slf4j将绑定第一个找到的记录器,在这种情况下是weblogic的系统记录器框架.有没有办法让它绑定到我们的WAR文件中的日志框架?在weblogic.xml中使用<prefer-web-inf-classes>没有帮助
我在日食上遇到m2e的奇怪行为:
示例:在更新maven项目之前:
.settings/
src/
pom.xml
.gitignore
Run Code Online (Sandbox Code Playgroud)
更新maven项目后:
.settings/
src/
pom.xml
.gitignore
bin/ <------ this dir appears after update maven project
bin/.settings/ <----------- contents the same as outside dir
bin/src
bin/.gitignore
bin/pom.xml
Run Code Online (Sandbox Code Playgroud)
我该如何避免这种奇怪的行为?