Java Weekly, Issue 201 – Java周刊》第201期

最后修改: 2017年 11月 3日

Lots of interesting writeups on Java 9 this week.

本周有很多关于Java 9的有趣文章。

Here we go…


1. Spring and Java


>> Learning Java with jshell []

A Quick intro of JShell makes it possible to explore Java without public static void main() methods ?

JShell的快速介绍使我们有可能在没有public static void main()方法的情况下探索Java ?

>> Data Classes for Java []

A comprehensive explanation of the new upcoming Java feature – data classes.


>> Hibernate Tips: How to map an entity attribute to an Optional []

Unfortunately, Hibernate and JPA 2.2 don’t support Optional as an attribute type but with a little trick, we can still use Optional as the return type of getter methods.

不幸的是,Hibernate和JPA 2.2不支持Optional作为属性类型,但通过一个小技巧,我们仍然可以使用Optional作为getter方法的返回类型。

>> Bean Validation benchmark revisited []

An interesting performance comparison of three most popular Bean Validation implementations – Hibernate Validator 6.x.x is faster than ever.

对三种最流行的Bean Validation实现进行了有趣的性能比较–Hibernate Validator 6.x.x比以前更快。

Also worth reading:

Webinars and presentations:


Time to upgrade:


2. Technical and Musings


>> Customize Your Agile Approach: Start With Results You Want []

Velocity is a current measure of capacity and not a measure of project progress – it makes more sense to track completed stories and not Story Points – the value of those change over time.


Also worth reading:


3. Comics


And my favorite Dilberts of the week:


>> App For a Better Boss []

>> Robot is not a Droid []

>> Troll Has No Job []

4. Pick of the Week


>> How To Track and Monitor Critical Java Application Metrics []