错误现象
project 已经引用了外部jar包
Tomcat 启动报错
Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
解决方法
右键选中web应用,Properties->deployment assembly-> add ->java build path entries ->选择 jar 后重新发布运行;