log4j:ERROR A “org.apache.log4j.ConsoleAppender” object is not assignable to a “org.apache.log4j.Appender” variable

后端 未结 1 453
温柔的废话
温柔的废话 2021-02-13 00:29

I am making a web app using gradle. I used log4j in this app. When I build the project I am getting error...

  • log4j:ERROR A \"org.apache.log4j.ConsoleAppender\" obj
1条回答
  •  走了就别回头了
    2021-02-13 01:33

    Adding this annotation works for me.

    @PowerMockIgnore("org.apache.log4j.*") 
    

    0 讨论(0)
提交回复
热议问题