In my Spring boot 2 project:
In build.gradle:
build.gradle
dependencies { implementation \'com.google.code.gson:gson:2.7\' imple
I excluded spring boot logging from build.gradle but issue was still occurring. It got resolved by removing org.apache.logging.log4j/log4j-slf4j-impl/2.12.1 from .classpath
org.apache.logging.log4j/log4j-slf4j-impl/2.12.1