以下會用到的軟體與網站
STS其實是Eclipse包裝過,之後開發的專案基本上都是Springboot、Spring…,直接使用STS可以省略安裝一堆Spring的套件
去https://spring.io/tools下載
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
IDE設定
下載完後解壓縮,在點擊SpringToolSuite4.exe,如下圖:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
點選左上 Window -> Preferences -> Java -> Installed JREs,改為你安裝的JDK 8
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
建立一個Java Project
點擊左上的File -> New -> Project,再選擇Java -> Java project,因為這個Project只是要測試,所以Project名稱我命名為為Test,輸入完名稱後點擊Finish
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
再新增一支.java在src裡面,程式碼如下:
點擊左上的Run(紅框框),就可以執行了
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →