2017-09-05 2 views
0

輸入org.springframework.webは解決できない次の行で発生しますインポート(のGradle)

import org.springframework.web.bind.annotation.*; 
[...] 

@RestController 
[...] 
@RequestMapping("/") 
[...] 


これは私の春スタータープロジェクトで発生します。 Gradle 2.xでSpringを使用しています

build.gradleファイルの依存関係を変更する必要があることがよくありますが、そこに追加する内容はわかりません。次のように私の依存関係が見えます:

dependencies { 
compile('org.springframework.boot:spring-boot-starter') 
testCompile('org.springframework.boot:spring-boot-starter-test') 
} 
+0

方法を確認してくださいあなたがウェブ開発をしたいならば、-boot-starter-web' –

答えて

関連する問題