NoSuchMethodError with SLF4J API

前端 未结 8 2048
醉梦人生
醉梦人生 2021-01-03 19:19

When Use with slf4j,

String test = blahblahblah;
logger.info(\"{}\",test);

Trace as below

java.lang.NoSuchMethodError: org.         


        
8条回答
  •  轮回少年
    2021-01-03 20:05

    Also make sure if you deploy in Glassfish externally (not locally) to remove duplicate dependencies in the lib folder of the Glassfish installation on that server.

    In my case, everything worked fine locally but once deployed on a server I got this error.

提交回复
热议问题