Why the followng code snippet
private void sampleMethod(){
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
SecurityContextHolder.getContext().setAuthentication(authentication);
//bussines logic
}
looks like asynchronous execution for user?
E.g. user pressed the button which should call web API which causes invocation of the method. In that case the client will not get a response. Cannot understand why it works like this.
Aucun commentaire:
Enregistrer un commentaire