想嘗試創建一個Spring boot web 項目,因條件限制,開發環境無法連接Internet。嘗試在idea中加入了我所知道的依賴jar包,設置了maven本地離線庫。目前spring boot可以啟動,main函數可以正常運行,可以訪問localhost:8080/Springboot/index.jsp,但訪問@RestController的url時: localhost:8080/Springboot/hello,提示404錯誤。工程結構和相關代碼如下圖:(圖中可見我放在本地的jar包),請問問題出在哪里,該如何處理?謝謝!
請問可以在無internet連接的情況下創建一個Spring boot web項目嗎?
開心每一天1111
2018-08-16 11:10:40