标签:
int dot = filename.lastIndexOf(‘.‘);
if ((dot > -1)
&& (dot < (licenceImg.getOriginalFilename().length()))) {
extension = licenceImg.getOriginalFilename().substring(dot + 1);
}
String fileName = System.nanoTime() + "."
+ extension;
标签:
原文地址:http://www.cnblogs.com/lanliying/p/4914497.html