在SpringApplication.run(DemosApplication.class, args);
中,我得到了错误:
org.springframework.context.ConfigurableApplicationContext cannot be resolved
它的屏幕截图:
这是我在sts中的源代码:
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemosApplication {
public static void main(String[] args) {
SpringApplication.run(DemosApplication.class, args);
}
}
如何解决此错误?