springSecurity e persistence