O tipo org.springframework.context.ConfigurableApplicationContext não pode ser resolvido. É indiretamente referenciado a partir de arquivos .class necessários
Estou seguindo o tutorial emspring.io para criar um aplicativo de primavera usando bota de primavera.
Posso fazer o programa funcionar perfeitamente em um computador. Quando tento um computador diferente, recebo o seguinte erro
O tipo org.springframework.context.ConfigurableApplicationContext não pode ser resolvido. É indiretamente referenciado a partir de arquivos .class necessários
Tentei excluir e adicionar minha biblioteca de sistemas JRE (JDK 1.8), além de limpar e atualizar o projeto usando o maven e até excluir e reimportar todo o projeto. Todos esses métodos não mostraram sucesso.
Meu arquivo pom é
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.1.RELEASE</version>
</parent>
<groupId>test.api</groupId>
<artifactId>api.test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>api.test Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<java.version>1.8</java.version>
</properties>
<build>
<finalName>api.test</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
A classe que está me dando o erro é a classe HelloWorldConfiguration.java
package hello;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class HelloWorldConfiguration {
public static void main(String[] args) {
SpringApplication.run(HelloWorldConfiguration.class, args);
}
}
Qualquer ajuda seria muito apreciada. Obrigado.