Monday, May 25, 2015

Spring Scheduler hello world example - run task in the future

Spring framework now support scheduler, so for most usage there is no need to involve other library, such as Quartz to do this.  The usage is very simple: add annotation @Scheduled(...) to any bean's method that need to be run in the future. The Spring context will create a thread to run it at the right time you specified in the future. 0. What you need JDK 1.7 Maven 3.2.1 Spring 4.1.0.RELEASE...

Monday, May 18, 2015

Understand all about hibernate fetch - WHEN and HOW

As Hibernate official document says: Hibernate have two orthogonal notions here: when is the association fetched and how is it fetched. There are many words on different document to describe ORM fetch like fetch strategy, fetch type, fetch mode, but in essence just the concept of WHEN and HOW. In this...
Powered by Blogger.

About The Author

My Photo
Has been a senior software developer, project manager for 10+ years. Dedicate himself to Alcatel-Lucent and China Telecom for delivering software solutions.