领先一步
VMware 提供培训和认证,以加速您的进步。
了解更多欢迎收看又一期的Spring 本周要闻! 对于 Pivotal 的 Spring 来说,这是令人兴奋的一周,您可以在 4 月 24 日重新安排的 Pivotal 发布活动上听到更多相关信息。
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
来解决类型不匹配问题并将 Spring MVC 中的异常绑定到 Controller Actions 的 POST
中。javax.transaction.Transactional
注解添加到 Spring 需要多少代码? 几乎没有! 这里的大部分代码只是单元测试。 否则,这只是 JTA 注解到 Spring 已经支持的引擎的简单映射,该引擎当前还支持本机 Spring @Transactional
和 @javax.ejb.TransactionAttribute
注解。RestTemplate
来进行 HTTP BASIC 身份验证。org.springframework.util.StopWatch
的实用程序类,该实用程序类可用于衡量方法调用的执行情况。 Javarevisited 博客有一个 <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>