package ankios.blog.service;

import org.apache.commons.io.FilenameUtils;
import org.springframework.stereotype.Service;

@Service("fileNameGenerator")
public class FileNameGeneratorImpl implements FileNameGenerator {
    @Override
    public String getFileName(String filename, String prefix) {
        StringBuilder sb=new StringBuilder();
        sb.append(prefix);
        sb.append(filename.hashCode() );
        sb.append(System.currentTimeMillis());
        return sb.toString();
    }
}

@@ -309,192 +309,66 @@
     
- StringBuilder sb=new StringBuilder();%0D%0A        sb.append(prefix);%0D%0A        sb.append(filename.hashCode() );%0D%0A        sb.append(System.currentTimeMillis());%0D%0A        return sb.toString
+return prefix+filename.hashCode()+System.currentTimeMillis
 ();%0D

Update FileNameGeneratorImpl.java