PageImpl JSON serialization with Spring Boot 2

During the migration of a Spring Boot application from 1.5.13 to 2.0.2, some of my Spring Rest Docs tests started failing. The reason being that some of my RestControllers return a org.springframework.data.domain.PageImpl object (from Spring Data Commons). With Spring Boot 1.5.13, this results in JSON like this: However, with Spring Boot 2.0.2 (which includes Spring…

Using Spring Boot with JavaFX

In my previous post, I showed how to use JavaFX with the Raspberry Pi 3. I promised there to follow up with a post on using Spring Boot with JavaFX, so here it goes. Just as an example, I will be using the REST API service of the Open AQ Platform API as it is…

Enable preview of Spring REST Docs snippets in IntelliJ IDEA

If you use Spring REST Docs, you will be using the Asciidoctor include¬†directive a lot to include the request and responses that are generated from the unit tests. Drawback is that the Asciidoctor plugin for IntelliJ IDEA will not render them by default and looks like this: The reason is simple, the snippets¬†attribute is only…