spring MVC上传图片
上传的地址:
http://localhost:8081/ajax_image/upload
上传成功之后的结果:
{"fileName":"2016-05-05 08:45:10_696_2016-03-30_22-49-27.png","fullUrl":"http://localhost:8081/upload/image/2016-05-05 08:45:10_696_2016-03-30_22-49-27.png","relativePath":"upload/image/2016-05-05 08:45:10_696_2016-03-30_22-49-27.png","remoteAbsolutePath":"/Users/whuanghkl/work/project/convention/src/main/webapp/upload/image/2016-05-05 08:45:10_696_2016-03-30_22-49-27.png","imgTag":"<img style="max-width: 99%" src="http://localhost:8081/upload/image/2016-05-05 08:45:10_696_2016-03-30_22-49-27.png" alt="">","url":"/upload/image/2016-05-05 08:45:10_696_2016-03-30_22-49-27.png"}