Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreWelcome to another installment of This Week in Spring! It's been an exciting week for Spring at Pivotal, which you can hear more about at the re-scheduled Pivotal launch event on April 24th.
Spring, of course, has an amazing REST stack and I highly encourage people to check out how to build consolidated, streamlined REST services with Spring! Moving on... :)
InitBinder to Resolve Type Mismatch and bind Exceptions in POST from Spring MVC to Controller Actions. javax.transaction.Transactional annotation to Spring? Almost nothing! Most of the code here is just unit tests. Otherwise, this is just a dead simple mapping of the JTA annotation to Spring's already supported engine, which also currently supports the native Spring @Transactional and @javax.ejb.TransactionAttribute annotation. RestTemplate to do HTTP BASIC authentication. org.springframework.util.StopWatch, which can be used to measure the execution of method invocations.
The Javarevisited blog has a
<a href="http://www.stumbleupon.com/su/1rKtfP/javarevisited.blogspot.com.au/2012/04/how-to-measure-elapsed-execution-time.html">nice post on how to use the <CODE>StopWatch</code> class</a>.
</LI>