NoSuchMethodError: org.springframework.core.ResolvableType.forInstance

Asked on February 10, 2016
I am creating spring 4 application and getting the following error.
Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.core.ResolvableType.forInstance(Ljava/lang/Object;)Lorg/springframework/core/ResolvableType;
at org.springframework.context.event.SimpleApplicationEventMulticaster.resolveDefaultEventType(SimpleApplicationEventMulticaster.java:142)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:119)
at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:111)
at org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:60)
at org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:48)

Replied on February 11, 2016
forInstance() method of ResolvableType class has been introduced in Spring 4.2.
Make sure that all the spring JAR must be equal or above 4.2 version.
https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/ResolvableType.html#forInstance-java.lang.Object-