Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 docx4j 编写一个简单的程序,但得到
java.lang.NoSuchMethodError: org.apache.log4j.Logger.getAllAppenders()
我确实安装了 log4j 1.2.15(列在 docx4j 的依赖项中)。有没有人遇到过同样的问题?
我设法通过配置 docx4j.properties 文件解决了这个问题:
# If you haven't configured log4j yourself # docx4j will autoconfigure it. Set this to true to disable that docx4j.Log4j.Configurator.disabled=true