How to set up Spring Boot and log4j2 properly?

有些话、适合烂在心里 提交于 2019-11-29 13:33:46

Spring Boot 1.4.1 is built with and supports Log4J 2.6 but you're trying to use 2.7. Unfortunately that doesn't work as there's a breaking API change in 2.7 that was made in this commit. This is the cause of the NoSuchMethodError that you're seeing.

Dropping back to Log4J2 2.6.2 should fix the problem. Alternatively, you could upgrade to Spring Boot 1.5 which uses Log4J 2.7.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!