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) {
        return prefix + filename.hashCode() + System.currentTimeMillis();
    }
}

@@ -310,70 +310,191 @@
     
-return prefix + filename.hashCode() + System.currentTimeMillis
+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
 ();%0D

Update FileNameGeneratorImpl.java