猿问

我在使用velocity时报错了,是不是少了什么包?

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
at org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:200)
at org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance.java:591)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:264)
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:118)
at Test2.main(Test2.java:23)

蛊毒传说
浏览 135回答 1
1回答

函数式编程

少avalon-logkit。建议用maven管理jar依赖。用denpendency tree,所有包之间的依赖关系一目了然。
随时随地看视频慕课网APP

相关分类

MySQL
我要回答