Baeldung Weekly Review 49 – Baeldung周评 49

最后修改: 2014年 12月 12日

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

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

在2014年一开始,我就决定追踪我的阅读习惯,并在这里分享最好的东西,在Baeldung

Here we go…

我们来了……

1. Spring

1.Spring

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

让我们用一些激动人心的消息作为回顾的开始–本周有很多Spring发布的消息。

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.

@Profile被引入Spring时,它对我们控制配置的方式产生了很大的影响。我们可以用配置文件做一些以前根本不可能做到的事情,至少是不可能做到的–这也是你在一个好的抽象中最终寻找的东西。

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

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.

一篇关于无版本乐观锁的文章–这是一个我不知道的很酷的Hibernate特性。

>> 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.

我最近一直在使用Elasticsearch,这很有帮助。

3. Technical and Musings

3.技术和思考

>> 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

4.漫画

All in with Dilbert this week:

本周与迪尔伯特全线合作。

>> Hunt Down and Kill Our Data

>> Made Up Numbers

>> Reinstall your OS

5. Pick of the Week

5 本周精选

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是清洁的🙂

[/sociallocker]

[/sociallocker]