how to avoid duplicate request in spring boot