The Baeldung Weekly Review 14 – Baeldung周报》14

最后修改: 2014年 4月 11日




>> Java 8 Friday: No More Need for ORMs

This joins the old discussion (do I need an ORM?) with new and promising tools – have a look at the code samples and be surprised that this is indeed Java code. Very cool.


>> Yet another way to handle exceptions in JUnit: catch-exception

A solid way of handling exceptions in JUnit tests – the BDD catch-exception library. I’m giving it a try now – as it indeed looks very cool.

在JUnit测试中处理异常的可靠方法 – BDD catch-exception库。我现在正在试一试 – 因为它确实看起来非常酷。

>> Garbage Collection Optimization for High-Throughput and Low-Latency Java Applications

Good brush up on tuning Java Garbage Collection for a real-world production environment. Goes over most GC concepts, but does so in a pragmatic, optimization-focused manner, which is a nice change from the standard GC articles out there.


>> Maven Git Flow Plugin for Better Releases

Interesting take on the established Maven Release Plugin, making all the goodies of git flow first class citizen.


>> Java 8 language changes

>> JVM concurrency: Java 8 concurrency basics

IBM Developerworks has two new articles on Java 8 – language changes and concurrency.

IBM Developerworks有两篇关于Java 8的新文章–语言变化和并发性。

>> Apache Tomcat 8 Preview

And finally, a nice webinar introducing the upcoming Tomcat 8 server. If you’re working with Tomcat, this is a good resource to keep up to date with what’s coming down the pipe.

最后,一个很好的网络研讨会介绍了即将推出的Tomcat 8服务器。如果你正在使用Tomcat,这是一个很好的资源,可以及时了解即将到来的信息。



>> Project Sagan: zero-downtime deployments

Project Sagan – the new reference Spring app – looks more and more interesting, especially considering that it’s powering This article illustrate how the code is deployed – very nice series that I’ll be following closely.

Project Sagan–新的参考Spring应用–看起来越来越有趣,特别是考虑到它正在为spring.io提供动力。这篇文章说明了代码是如何部署的–非常好的系列,我将密切关注。

>> Tracking Exceptions – Part 4 – Spring’s Mail Sender

If you’ve read any of my last few weekly reviews, you will have seen earlier articles in this series. This kind of application – making sense of log file data – is something that, one way or another, any decent sized project should solve.


>> CSRF protection in Spring MVC, Thymeleaf, Spring Security application

Short and to the point illustration of how a CSRF attack works and how to protect against it with Spring Security (3.2+). Very nice.

简短而直接地说明了CSRF攻击的工作原理,以及如何使用Spring Security(3.2以上)来保护它。非常好。



>> TDD Chess Game Part 3: Stumbling and Refactoring

>> TDD棋局第三部分:绊脚石和重构

I have talked about this series before – but, perhaps not surprisingly – it is again the read (or watch) of the week. Why do I keep picking it? Simple – it’s one of the few things that has a good shot of getting you over the initial resistance of doing TDD. That took a few years for me, so I know it’s not easy – but the results are huge.

我以前谈到过这个系列–但是,也许并不奇怪–它又是本周的阅读(或观看)。为什么我一直选它?很简单–它是为数不多的能让你克服做TDD的最初阻力的东西之一。这对我来说花了几年时间,所以我知道这并不容易 – 但结果是巨大的。

So – straight to the point – if you’re going to only read one article this week, go read this one (actually, reading the first two parts would be better).


>> MongoDB 2.6 is $out

Vlad has a useful overview of the new functionality that came out in MongoDB 2.6.

Vlad对MongoDB 2.6中出现的新功能有一个有用的概述。

>> Web APIs and n+1 problem

The infamous n+1 problem exists in Web APIs as well. This article has a lot of information to digest – so take your time with it.

臭名昭著的n+1问题在Web API中也存在。这篇文章有很多信息需要消化–所以请慢慢看吧。

>> Security: Heartbleed vulnerability

Yes, Heartbleed was disclosed this week, and yes, there are a host of articles covering it, but I’m assuming you already read some of them, so I’m including a single one out of many – the github report.




>> The Cost of Context Switching

I think that we all overestimate our ability to context switch – and the sooner we accept that switches are developer kryptonite – the sooner we can do something about it. This article is a great reminder of that fact.