multiple functioning using java and spring framework -


i using spring ,

i need send mail 10000 users.now waiting in page till mails sent.but dont want wait.i need give task class execute automatically after handover,then need continue task.

how can this?

thanks in advance...

the @async annotation

the @async annotation can provided on method invocation  

of method occur asynchronously. in other words, caller return upon invocation , actual execution of method occur in task has been submitted spring taskexecutor.

source


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -