每個人都可以獨立、快速、高效地開發項目!
Everyone can develop projects independently, quickly and efficiently!
文件上傳保存到伺服器指定目錄
文件下載
訪問上傳的圖片等資源
啟用項目靜態資源訪問,可訪問static/templates目錄下資源
static資源訪問:http://localhost:8888/static/welcome.html
templates資源訪問:http://localhost:8888/templates/springbootplus.html
上傳swagger:http://localhost:8888/swagger-ui.html#!/upload-controller/uploadUsingPOST
上傳后,圖片文件訪問:http://localhost:8888//resource/201908210134467.png
圖片自定義控制訪問:http://localhost:8888/image/201908210134467.png
[admin ] 來源:OsChina 連結:https://www.oschina.net/news/109241/spring-boot-plus-1-2-1-released spring-boot-plus V1.2.1 發布,文件上傳下載和靜態資源訪問已經有155次圍觀
本文地址:http://coctec.com/news/all/show-post-212537.html