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

最后修改: 2017年 10月 26日

中文/混合/英文(键盘快捷键:t)

Let’s jump right in.

让我们直接跳进去。

1. Spring and Java

1.Spring和Java

>> Enabling Two-factor Authentication For Your Web Application [techblog.bozho.net]

A quick and practical example of a 2FA implementation with Spring.

一个快速实用的用Spring实现2FA的例子

>> Creating Multi-Release JAR Files in IntelliJ IDEA [blog.jetbrains.com]

IntelliJ IDEA makes it quite easy to leverage JDK 9’s multi-release JARs.

IntelliJ IDEA使利用JDK 9的多版本JARs变得相当容易。

>> Performance measurement with JMH – Java Microbenchmark Harness [blog.codecentric.de]

Benchmarking JVM application can be tricky because of runtime optimizations but using JMH makes it straightforward.

由于运行时的优化,JVM应用程序的基准测试可能很棘手,但使用JMH使其变得简单明了。

>> Making JSR 305 Work On Java 9 [blog.codefx.org]

Mixing JSR 305 and javax.annotation annotations is not obvious – but certainly doable.

混合JSR 305和javax.annotation注解并不明显–但肯定是可以做到的。

>> How to test Spring Cloud Stream applications (Part I) [spring.io]

SpringRunner (from Spring Testing Framework), Boot auto-configuration for the test environment and mocks from Spring Integration – all make integration tests not so challenging anymore.

SpringRunner(来自Spring测试框架)、测试环境的Boot自动配置和Spring Integration的模拟–所有这些使集成测试不再那么具有挑战性。

Also worth reading:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical and Musings

2.技术和思考

>> Jenkins vs Travis CI vs Circle CI vs TeamCity vs Codeship vs GitLab CI vs Bamboo [blog.takipi.com]

A comprehensive comparison of most CI tools available on the market.

对市场上大多数CI工具的全面比较。

>> Knowing What Is There [michaelfeathers.silvrback.com]

An insightful writeup on the mindset of how to approach building and evolving a system.

一篇有见地的文章关于如何建立和发展一个系统的思维方式

This is the kind of insight you can only get with experience and failure.

这是你只有通过经验和失败才能获得的洞察力。

>> How CV-driven development shapes our industry [swizec.com]

A fun read of an all to familiar journey from a junior developer, not really understanding their choices to a more experienced engineer.

一个有趣的读物,讲述了一个熟悉的旅程,从一个初级开发人员,不真正了解他们的选择,到一个更有经验的工程师。

Also worth reading:

还值得一读的是:

3. Comics

3.漫畫

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> Arguing on Twitter [dilbert.com]

>> Listening to Your Gut [dilbert.com]

>> False Rumor [dilbert.com]

4. Pick of the Week

4.本周精选

>> Deep Dive into Java Management Extensions (JMX) [stackify.com]