2014年1月2日 星期四

[Spring] @Async


// 此 method 會再另一個 thread 中被執行.
@Async
public void execute() { // TODO }


在 applicationContext.xml 中要宣告:


    





* Reference
- Asynchronous method invocation in Spring 3.0

沒有留言:

張貼留言