私はSpringフレームワークを学習しようとしていますので、Spring.io
ウェブサイトで入手できるチュートリアルに従うことにしました。 http://spring.io/guides/gs/rest-service/Springアプリケーションでの問題、spring.ioチュートリアルのbasend
私は友人の前日にそれを行い、アプリはまだ働いており、まだ動作しています。私は自分でそれを実行しようとしましたし、メインクラスに私はエラーメッセージが表示されます。
エラースタックトレース
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files
The method run(Object, String...) from the type SpringApplication refers to the missing type ConfigurableApplicationContext
私は、今の私の会社のオフィスでそれを行うには缶セキュリティソフトウェアをしようとしています私の会社のブロードバンドは間違いですか?
メインクラス:Application.java
package hello;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
これをMavenプロジェクトとして作成しましたか? –
いいえ、私はgradleを使用していますので、Gradleプロジェクトとして作成しました –
あなたの 'build.gradle'ファイルを共有できますか? – Ben