title: java.lang.AbstractMethodError: org.springframework.boot.env.EnvironmentPostProcessorApplicationListener error
body: <p>My Spring moot application was working fine from my local. But all of a sudden I am getting the below error when I start my tomcat server from STS. I am clueless why am getting this error.</p>
  <p>The error details,</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.AbstractMethodError: 
      org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.supportsSourceType(Ljava/lang/Class;)Z
      at org.springframework.context.event.GenericApplicationListenerAdapter.supportsSourceType(GenericApplicationListenerAdapter.java)
      org.springframework.context.event.GenericApplicationEventMulticaster.supportsEvent(AbstractApplicationEventMultiCaster.java)
      org.springframework.context.event.GenericApplicationEventMulticaster.retrieveApplicationListeneres(AbstractApplicationEventMultiCaster.java)
      ....
      at java.util.ArrayList.forEach(ArrayList.java:1257)
      ....
      at org.springframework.boot.SpringApplication.prepareEnvironment(SpringAppliccation.java 362)
      at org.Springframework.boot.ApringApplication.run(SpringApplication.java:320)
      at org.Springframework.boot.ApringApplication.run(SpringApplication.java:1309)
      at org.Springframework.boot.ApringApplication.run(SpringApplication.java:1298)
      at com.test.Application.main(Application.java)
  </code></pre>
  <p>Am using java 8 and it is a Spring Boot project of version 2.4.2. I even tried to delete all my jars from the .m2 folder and installed them again. But the same issue, am facing.</p>
  <p>Please help me to get a solution for this issue.</p>