我從網上下載http://maven.springframework.org/release/org/springframework/spring/java的春天導入錯誤
彈簧框架,然後4.1.6.RELEASE我跟着春天網站http://spring.io/guides/gs/rest-service/啓動一個項目,但我發現在它裏面有問題。
//The import org.springframework.boot cannot be resolved
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
它似乎無法找到jar文件,所以無法導入它,但我已經添加了所有jar文件來構建路徑。
我該如何解決? Spring和SpringFramework是同一個嗎?
您是否在IDE中添加了JAR作爲依賴項?你在用什麼IDE? – JonasCz
我已經添加了all.I使用eclipse。 – weaver
不要尋找罐子手動使用像maven或gradle這樣的東西來爲你做。它會爲你節省很多時間和頭痛......當遵循這些指南時,總有兩種味道是Maven和Gradle。選擇其中任何一個,但請不要在這些日子裏尋找罐子...... –