Spring Boot错误:无法解决org.springframework.context.ConfigurableApplicationContext

时间:2018-07-28 09:05:37

标签: spring-boot

SpringApplication.run(DemosApplication.class, args);中,我得到了错误:

org.springframework.context.ConfigurableApplicationContext cannot be resolved

它的屏幕截图:

enter image description here

enter image description here

这是我在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);
    }
}

如何解决此错误?

0 个答案:

没有答案