Getting below error while running a spring boot application. Can anybody help?
Application Class
package com.dell.cns.services.esb.heartbeat.satcps;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan("com.dell.cns.services.esb")
public class CnsServicesHeartBeatSatcpsApplication {
public static void main(String[] args) {
SpringApplication.run(CnsServicesHeartBeatSatcpsApplication.class, args);
}
}
Error Message
Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.boot.SpringApplication.run(Ljava/lang/Class;[Ljava/lang/String;)Lorg/springframework/context/ConfigurableApplicationContext;
at com.dell.cns.services.esb.heartbeat.satcps.CnsServicesHeartBeatSatcpsApplication.main(CnsServicesHeartBeatSatcpsApplication.java:12)