Baeldung Weekly Review 49 – 巴尔东周评 49

最后修改: 2014年 12月 12日


At the very beginning of 2014 I decided to track my reading habits and share the best stuff here, on Baeldung.


Here we go…


1. Spring


Let’s star the review with some exciting news – lots of Spring releases this week:


And of course, a few more recordings from SpringOne – most about Spring XD:

当然,还有一些来自SpringOne的录音–大部分是关于Spring XD的。

>> Spring Data JPA Tutorial: Getting the Required Dependencies

A very helpful and to the point post on putting together the right Maven dependencies to use Spring Data JPA.

这是一篇非常有帮助的帖子,介绍了如何将正确的Maven依赖关系用于Spring Data JPA。

>> Creating a REST API with Spring Boot and MongoDB

And a solid intro to build a REST API with Boot and MongoDB.

以及用Boot和MongoDB构建REST API的坚实介绍。

>> Boot your own infrastructure – Extending Spring Boot in five steps

A detailed, infrastructure level article on building your own Spring Boot Starter, if you can’t find an existing one that already covers your needs. And who knows – perhaps it will someday became official.

一篇关于构建你自己的Spring Boot启动器的详细的、基础设施级别的文章,如果你找不到已经涵盖你的需求的现有的启动器的话。谁知道呢–也许有一天它会成为官方的。

>> Avoid conditional logic in @Configuration

When @Profile was introduced in Spring, it had quite an effect on the way we could control our configuration. We could do things with profiles that simply weren’t possible before, at least not cleanly – which is ultimately what you’re looking for in a good abstraction.


Spring 4.0 improved on @Profile by introducing @Conditional – a next level of abstraction annotation that basically allow you to control your configuration based on any number of conditions, not just profiles.

Spring 4.0对@Profile进行了改进,引入了@Conditional–这是一个下一层次的抽象注解,基本上允许你根据任何数量的条件来控制你的配置,而不仅仅是配置文件。

This piece goes into some detail on how to use these conditional annotations that Spring Boot makes available.

这篇文章详细介绍了如何使用Spring Boot提供的这些条件注释

2. Java


>> What might a Beans v2.0 spec contain?

A cool though experiment on what would make sense in a new Java Beans 2.0 spec. But more than just that – an actual, early implementation you can check out (and contribute to).

这是一个很酷的实验,说明在新的Java Beans 2.0规范中什么才是有意义的。但不仅仅是这样–一个实际的、早期的实现,你可以查看(并为之作出贡献)。

>> On heap vs off heap memory usage

Off heap memory for the JVM is one of those things you read about but may never actually use. Even so, this is a piece I enjoyed reading.

JVM的Off heap内存是那些你读到的但可能永远不会实际使用的东西之一。即便如此,这也是我喜欢读的一篇文章。

>> Don’t be “Clever”: The Double Curly Braces Anti Pattern

An oldie but a goodie – the double curly braces instantiation. Yeah – not a good idea.


>> The downside of version-less optimistic locking

An article on version-less optimistic locking – a cool Hibernate feature I didn’t know about.


>> Replacing Throwing Exceptions with Notification in Validations

A must read on handling validation properly and how to refactor your way to a better notification based solution.


>> Elasticsearch tips: inserting vs. updating your index

I’ve been using a lot of Elasticsearch lately and this was helpful.


3. Technical and Musings


>> Chris Richardson Discusses CQRS and Event Sourcing via Docker

A very articulate and engaging 15 minute interview with Chris Richardson on CQRS architecture.

Chris Richardson关于CQRS架构的15分钟访谈,非常清晰且引人入胜。

If you’re building micro-services (or thinking about it) – CQRS and Event Sourcing are a solid way to go.

如果你正在构建微服务(或正在考虑)–CQRS和Event Sourcing是一种可靠的方式。

>> Flexibility vs Simplicity? Why Not Both?

Pragmatic piece on being critical and reevaluating your beliefs, even (or especially) the industry accepted ones you previously took for granted. A better way may be available if you just look at the problem differently.


4. Comics


All in with Dilbert this week:


>> Hunt Down and Kill Our Data

>> Made Up Numbers

>> Reinstall your OS

5. Pick of the Week


I recently introduced the “Pick of the Week” section here in my “Weekly Review”. If you’re already on my email list – you got the pick already – hope you enjoyed it.

我最近在 “每周回顾 “中推出了 “每周精选 “栏目。如果你已经在我的电子邮件列表中–你已经得到了精选–希望你喜欢它。

If not – you can share the review and unlock it right here:


[sociallocker id=”5073″]

[sociallocker id=”5073″]

>> The Cathedral and the Bazaar

Arguably one of the more influential pieces of writing by Eric S. Raymond, and a fascinating read. Here’s a prettier version if you the original XHTML is to clean ?

可以说,这是Eric S. Raymond的一篇比较有影响力的文章,读起来很吸引人。这里有一个更漂亮的版本,如果你的原始XHTML是清洁的?