
nginx
China_HaoZi
这个作者很懒,什么都没留下…
展开
-
图片上传至Linux中Nginx服务器中
代码 controller层: package zzdx.sh.controller; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPReply; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import or原创 2020-06-14 13:22:55 · 1015 阅读 · 3 评论 -
上传图片到本地Nginx服务器
controller层: @ResponseBody @RequestMapping("/fileUpload.do") public Map<String,Object> upload(MultipartFile img) throws Exception { // 保存图片到 nginx 指定的目录 C:\servers\nginx-1.16.1\files\imgs String fileName = System.currentTim原创 2020-06-14 12:56:20 · 1246 阅读 · 0 评论