Year: 2015
-
Groovy
What’s new in Grails 3
A few days ago Grails 3.0 was officially released. Grails is now based on Spring Boot, the build system changed…
Read More » -
Software Development
R: Snakes and ladders markov chain
A few days ago I read a really cool blog post explaining how Markov chains can be used to model…
Read More » -
Software Development
Writing Clean Tests – Small Is Beautiful
We have learned that “clean” unit tests might not be as clean as we think. We have done our best…
Read More » -
Enterprise Java
How does Hibernate store second-level cache entries
Introduction The benefit of using a database access abstraction layer is that caching can be implemented transparently, without leaking into…
Read More » -
Enterprise Java
How to FlatMap a JDBC ResultSet with Java 8?
You’re not into the functional mood yet? Then the title might not resonate with you – but the article will!…
Read More » -
Scala
Scala Snippet: Case Class vs plain ordinary Class
In Scala there exist the construct of a ‘case class’. According to Martin Odersky this supports you to write a…
Read More » -
Enterprise Java
Spring Enable annotation – writing a custom Enable annotation
Spring provides a range of annotations with names starting with Enable*, these annotations in essence enable certain Spring managed features…
Read More » -
Java核心
用于Java和XML绑定的JAXB教程– 终极指南
Java为处理XML结构和文件提供了一系列的选项。JAXB是其中最常见使用的一种。JAXB全称是Java Architecture for XML Binding。它能够将Java对象装换为XML结构,反过来亦然。JAXB是在JRE 1.6的第一个版本中随着JRE标准包一起发布的。 JAXB的第一个规范在2003年3月完成,实现过程由 Java Specification Request 31: https://jcp.org/en/jsr/detail?id=31所跟踪。在这个规范请求中你可发现很多关于JAXB的成长和所有的改进。 就像刚才提到的,JAXB实在1.6中加入JRE包的。在此之前,要使用它必须将它的包加入到工程中。 在JAXB可以使用之前(很久之前),Java处理XML的方式是DOM: http://www.w3.org/DOM/。这种方式并不是最好的,因为没有很好的抽象来映射XML节点,所有的值类型都被认为是字符串。JAXB有许多的优点,比如面向对象方式的操作XML节点和属性,值类型,注解和本文中将要阐述的其他优点。 本文中的所有例子程序都是使用以下版本来实现的: JRE 1.8.0 for 32b。所使用的IDE是Eclipse…
Read More » -
DevOps
Log Management Tools Face-Off: Splunk vs. Logstash vs. Sumo Logic
What are the main trade-offs between the leading log management tools and how to choose the one that’s right for…
Read More »