<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Wim Deblauwe - Blog</title>
    <link>https://www.wimdeblauwe.com/blog/</link>
    <description>Recent content in Blogs on Wim Deblauwe</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>© 2022 Wim Deblauwe</copyright>
    <lastBuildDate>Mon, 16 Nov 2026 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://www.wimdeblauwe.com/blog/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Building an application with Shadleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2026/11/16/building-an-application-with-shadleaf/</link>
      <pubDate>Mon, 16 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/11/16/building-an-application-with-shadleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post is the first in a series showing how to build a Spring Boot with Thymeleaf application using the &lt;a href=&#34;https://shadleaf.dev/&#34;&gt;Shadleaf component library&lt;/a&gt;.
Over the course of 10 parts, we will build Spendleaf, an expense tracker for a small team.
Employees enter expenses and attach receipts, and managers approve or reject them.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Shadleaf 1.0 release</title>
      <link>https://www.wimdeblauwe.com/blog/2026/10/29/shadleaf-1.0-release/</link>
      <pubDate>Thu, 29 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/10/29/shadleaf-1.0-release/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;🎉 Shadleaf 1.0 is out!
&lt;a href=&#34;https://shadleaf.dev/&#34;&gt;Shadleaf&lt;/a&gt; is an open-source library of accessible, themeable UI components for Thymeleaf, packaged as a Spring Boot starter.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Taming Thymeleaf 4th edition release</title>
      <link>https://www.wimdeblauwe.com/blog/2026/09/27/taming-thymeleaf-4th-edition-release/</link>
      <pubDate>Sun, 27 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/09/27/taming-thymeleaf-4th-edition-release/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;🎉 The 4th edition of my book &lt;a href=&#34;https://www.wimdeblauwe.com/books/taming-thymeleaf/&#34;&gt;Taming Thymeleaf&lt;/a&gt; is out!
It has been fully updated for Spring Boot 4, Java 25 and Tailwind CSS 4, and it switches the frontend build over to Vite.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using multiple GitHub accounts on one machine</title>
      <link>https://www.wimdeblauwe.com/blog/2026/09/14/using-multiple-github-accounts-on-one-machine/</link>
      <pubDate>Mon, 14 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/09/14/using-multiple-github-accounts-on-one-machine/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I have a personal GitHub account, an account for my own company, and one for each client I work with.
They all live on the same laptop, and they all talk to &lt;code&gt;github.com&lt;/code&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;When having multiple accounts, you need to be careful about using the right SSH key and the right commit email address for each repository.
But if you plan it right, you can make it so that Git does the right thing automatically, without you having to remember which account a repository belongs to.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In this blog post, I show the setup: one base directory per account, and no special URLs.
I clone with the exact URL that GitHub puts on my clipboard.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Testing your auto-configuration against a missing optional dependency</title>
      <link>https://www.wimdeblauwe.com/blog/2026/09/06/testing-your-auto-configuration-against-a-missing-optional-dependency/</link>
      <pubDate>Sun, 06 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/09/06/testing-your-auto-configuration-against-a-missing-optional-dependency/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If your library or starter has optional dependencies, it is surprisingly easy to write an auto-configuration that blows up at startup for everybody who does &lt;em&gt;not&lt;/em&gt; have that optional dependency on the classpath.
Even more annoying: &lt;code&gt;FilteredClassLoader&lt;/code&gt;, the tool that Spring Boot gives us for this kind of test, cannot reproduce that failure.
In this blog post, I will show you why, and give you a small &lt;code&gt;HidingClassLoader&lt;/code&gt; that can.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Writing a Thymeleaf component library - part 4</title>
      <link>https://www.wimdeblauwe.com/blog/2026/08/17/writing-a-thymeleaf-component-library---part-4/</link>
      <pubDate>Mon, 17 Aug 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/08/17/writing-a-thymeleaf-component-library---part-4/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;After &lt;a href=&#34;https://wimdeblauwe.com/blog/2026/07/27/writing-a-thymeleaf-component-library&#34;&gt;creating a Thymeleaf component library&lt;/a&gt;, &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2026/08/03/writing-a-thymeleaf-component-library---part-2/&#34;&gt;building a component&lt;/a&gt; and adding &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2026/08/10/writing-a-thymeleaf-component-library---part-3/&#34;&gt;support for slots&lt;/a&gt;, we will now turn our attention to adding client-side interactivity to a component.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Writing a Thymeleaf component library - part 3</title>
      <link>https://www.wimdeblauwe.com/blog/2026/08/10/writing-a-thymeleaf-component-library---part-3/</link>
      <pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/08/10/writing-a-thymeleaf-component-library---part-3/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2026/07/27/writing-a-thymeleaf-component-library/&#34;&gt;part 1&lt;/a&gt; we created a Thymeleaf component library that can be used in a Spring Boot application.
&lt;a href=&#34;https://www.wimdeblauwe.com/blog/2026/08/03/writing-a-thymeleaf-component-library---part-2/&#34;&gt;Part 2&lt;/a&gt; showed how to create an actual component with custom attributes and a passthrough of any attribute.
In part 3 we will add support for slots, which allows to add arbitrary content inside a component.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Writing a Thymeleaf component library - part 2</title>
      <link>https://www.wimdeblauwe.com/blog/2026/08/03/writing-a-thymeleaf-component-library---part-2/</link>
      <pubDate>Mon, 03 Aug 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/08/03/writing-a-thymeleaf-component-library---part-2/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2026/07/27/writing-a-thymeleaf-component-library/&#34;&gt;part 1&lt;/a&gt; we created a Thymeleaf component library that can be used in a Spring Boot application.
There is a sample application that uses the library, and there is full live reload support for changing the CSS and JS files in the library.
We will create an actual component in the library and use it in the sample application.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Writing a Thymeleaf component library</title>
      <link>https://www.wimdeblauwe.com/blog/2026/07/27/writing-a-thymeleaf-component-library/</link>
      <pubDate>Mon, 27 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/07/27/writing-a-thymeleaf-component-library/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog series will explain how to write a component library for Thymeleaf.
The goal is to create a library that can be used in any Spring Boot application that uses Thymeleaf as the view technology.
Users of the library should be able to use the components to quickly build a user interface without having to write a lot of HTML and CSS themselves.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Testing OAuth2 client login with mock-oauth2-server</title>
      <link>https://www.wimdeblauwe.com/blog/2026/07/07/testing-oauth2-client-login-with-mock-oauth2-server/</link>
      <pubDate>Tue, 07 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/07/07/testing-oauth2-client-login-with-mock-oauth2-server/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you use Spring Boot with Thymeleaf, you might be using an external OAuth2 provider like Keycloak or Okta to authenticate your users. In this blog post, I will show you how to test your OAuth2 client login with &lt;a href=&#34;https://github.com/navikt/mock-oauth2-server&#34;&gt;mock-oauth2-server&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Migrating away from Thymeleaf Layout Dialect</title>
      <link>https://www.wimdeblauwe.com/blog/2026/02/25/migrating-away-from-thymeleaf-layout-dialect/</link>
      <pubDate>Wed, 25 Feb 2026 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2026/02/25/migrating-away-from-thymeleaf-layout-dialect/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post explains what the Thymeleaf Layout Dialect is, why you might want to stop using it, and how to migrate to a pure Thymeleaf solution using &lt;code&gt;th:replace&lt;/code&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>How I document production-ready Spring Boot applications</title>
      <link>https://www.wimdeblauwe.com/blog/2025/09/08/how-i-document-production-ready-spring-boot-applications/</link>
      <pubDate>Mon, 08 Sep 2025 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2025/09/08/how-i-document-production-ready-spring-boot-applications/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post explains how I like to document a Spring Boot application I am writing.
It is the third and last post in my series on writing production-ready Spring Boot applications.
See &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2025/06/24/how-i-write-production-ready-spring-boot-applications/&#34;&gt;How I write production-ready Spring Boot applications&lt;/a&gt; and &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2025/07/30/how-i-test-production-ready-spring-boot-applications/&#34;&gt;How I test production-ready Spring Boot applications&lt;/a&gt; for the other posts in the series.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>How I test production-ready Spring Boot applications</title>
      <link>https://www.wimdeblauwe.com/blog/2025/07/30/how-i-test-production-ready-spring-boot-applications/</link>
      <pubDate>Wed, 30 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2025/07/30/how-i-test-production-ready-spring-boot-applications/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;My previous blog post &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2025/06/24/how-i-write-production-ready-spring-boot-applications/&#34;&gt;How I write production-ready Spring Boot applications&lt;/a&gt; explained how I like to write and structure my production code in Spring Boot applications.
This blog post will further explain how I write tests for the code.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>How I write production-ready Spring Boot applications</title>
      <link>https://www.wimdeblauwe.com/blog/2025/06/24/how-i-write-production-ready-spring-boot-applications/</link>
      <pubDate>Tue, 24 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2025/06/24/how-i-write-production-ready-spring-boot-applications/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will explain how I currently write Spring Boot applications.
I have been writing Java for over 25 years, and most of that involved Spring and its ecosystem.
I will talk about how I architect my app, package structure, naming conventions, etc.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Combine Testcontainers and Spring Boot with multiple containers</title>
      <link>https://www.wimdeblauwe.com/blog/2025/05/14/combine-testcontainers-and-spring-boot-with-multiple-containers/</link>
      <pubDate>Wed, 14 May 2025 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2025/05/14/combine-testcontainers-and-spring-boot-with-multiple-containers/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Testcontainers is a great technology to run Docker containers of dependencies like a database or a messaging middleware like ActiveMq or Kafka.
It might not immediately be obvious how to combine JUnit, Testcontainers and Spring Boot when you have multiple containers that your application needs.
This blog post aims to provide some guidance on how to combine them.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Thymeleaf and TailwindCSS 4.0 updates</title>
      <link>https://www.wimdeblauwe.com/blog/2025/01/29/thymeleaf-and-tailwindcss-4.0-updates/</link>
      <pubDate>Wed, 29 Jan 2025 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2025/01/29/thymeleaf-and-tailwindcss-4.0-updates/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Last week &lt;a href=&#34;https://tailwindcss.com/blog/tailwindcss-v4&#34;&gt;Tailwind CSS v4.0&lt;/a&gt; was released.
This, unfortunately, broke the &lt;a href=&#34;https://github.com/wimdeblauwe/ttcli&#34;&gt;ttcli tool&lt;/a&gt; to generate a Spring Boot with Thymeleaf project when you selected Tailwind CSS.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Problems I no longer have by using Server-side rendering</title>
      <link>https://www.wimdeblauwe.com/blog/2024/12/31/problems-i-no-longer-have-by-using-server-side-rendering/</link>
      <pubDate>Tue, 31 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2024/12/31/problems-i-no-longer-have-by-using-server-side-rendering/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I really like to use Spring Boot, Thymeleaf and htmx for a productive web application stack.
However, most of my day-to-day work involves writing REST API backends (Well, &lt;a href=&#34;https://www.htmx.org/essays/how-did-rest-come-to-mean-the-opposite-of-rest/&#34;&gt;JSON Data APIs really&lt;/a&gt;) for Angular or React frontends.
During that work, I sometimes can’t help but think “We would not have this issue we are discussing now if we had used server-side rendering instead of a JavaScript Single Page Application.”.
This blog explains some of those thoughts in more detail.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Redirect attributes with Spring MVC and htmx</title>
      <link>https://www.wimdeblauwe.com/blog/2024/11/19/redirect-attributes-with-spring-mvc-and-htmx/</link>
      <pubDate>Tue, 19 Nov 2024 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2024/11/19/redirect-attributes-with-spring-mvc-and-htmx/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;A common implementation pattern with Spring MVC is showing a notification message after a redirect has happened.
For example, you edit a product in a page and after saving the product you are redirected back to the list of products. At the top, you show a message &amp;#34;Product xyz updated&amp;#34;. If the user manually refreshes the page, the message should disappear.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;To implement this, you can use redirect attributes, sometimes also called flash attributes.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Technical presentations with Slidev</title>
      <link>https://www.wimdeblauwe.com/blog/2024/11/05/technical-presentations-with-slidev/</link>
      <pubDate>Tue, 05 Nov 2024 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2024/11/05/technical-presentations-with-slidev/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I recently started using &lt;a href=&#34;https://sli.dev&#34;&gt;Slidev&lt;/a&gt; for creating presentations.
It is a tool to create a Powerpoint/Keynote/Google Slides like presentation, but using Markdown instead.
In this blog post, I will explain the basics and share some of my favorite tips and tricks.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using React components in a Spring Boot Thymeleaf project</title>
      <link>https://www.wimdeblauwe.com/blog/2024/10/15/using-react-components-in-a-spring-boot-thymeleaf-project/</link>
      <pubDate>Tue, 15 Oct 2024 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2024/10/15/using-react-components-in-a-spring-boot-thymeleaf-project/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show you how to create your own React components in a Spring Boot with Thymeleaf project.
The setup will use Vite to be able to write the React components in TypeScript and have live reload of the components so you can easily edit them and use them in your Thymeleaf templates.
In the end, we will also see how we can use an existing React library in our application.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Authoring Web Components in a Spring Boot Thymeleaf project</title>
      <link>https://www.wimdeblauwe.com/blog/2024/10/03/authoring-web-components-in-a-spring-boot-thymeleaf-project/</link>
      <pubDate>Thu, 03 Oct 2024 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2024/10/03/authoring-web-components-in-a-spring-boot-thymeleaf-project/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show you how to create your own Web Components in a Spring Boot with Thymeleaf project.
The setup will use Vite to be able to write the Web Components in TypeScript and have live reload of the components so you can easily edit them and use them in your Thymeleaf templates.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Spring Integration using JSON serialization</title>
      <link>https://www.wimdeblauwe.com/blog/2024/07/10/spring-integration-using-json-serialization/</link>
      <pubDate>Wed, 10 Jul 2024 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2024/07/10/spring-integration-using-json-serialization/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In my previous blog post &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2024/06/25/transactional-outbox-pattern-with-spring-boot/&#34;&gt;Transactional Outbox pattern with Spring Boot&lt;/a&gt;, I compared Spring Integration with Spring Modulith to implement the microservices outbox pattern. I mentioned that a drawback of Spring Integration is the fact that Java serialization is used so the data in the database is not readable with standard database tooling.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Transactional Outbox pattern with Spring Boot</title>
      <link>https://www.wimdeblauwe.com/blog/2024/06/25/transactional-outbox-pattern-with-spring-boot/</link>
      <pubDate>Tue, 25 Jun 2024 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2024/06/25/transactional-outbox-pattern-with-spring-boot/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you are building a microservice architecture, or you just need to send emails from your monolith, you should look into the Transactional Outbox pattern to ensure reliable communication between services.
This blog post shows a few ways how you can implement this using Spring Boot.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Rapid application prototyping with Bootify</title>
      <link>https://www.wimdeblauwe.com/blog/2024/02/12/rapid-application-prototyping-with-bootify/</link>
      <pubDate>Mon, 12 Feb 2024 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2024/02/12/rapid-application-prototyping-with-bootify/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Starting a new application can be a daunting task.
How will you structure your code?
How can you get started quickly?
There are a few tools such as &lt;a href=&#34;https://www.jhipster.tech/&#34;&gt;JHipster&lt;/a&gt; that help you setup your project.
One such alternative that I recently looked at is &lt;a href=&#34;https://bootify.io/&#34;&gt;Bootify&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Htmx global error handler</title>
      <link>https://www.wimdeblauwe.com/blog/2023/12/14/htmx-global-error-handler/</link>
      <pubDate>Thu, 14 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2023/12/14/htmx-global-error-handler/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The &lt;a href=&#34;https://github.com/wimdeblauwe/htmx-spring-boot/releases/tag/3.2.0&#34;&gt;htmx-spring-boot library 3.2.0&lt;/a&gt; has just been released and now supports using &lt;code&gt;HtmxResponse&lt;/code&gt; as a return type for error handlers.
This blog post shows how you can use this.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Book launch: Modern frontends with htmx</title>
      <link>https://www.wimdeblauwe.com/blog/2023/12/03/book-launch-modern-frontends-with-htmx/</link>
      <pubDate>Sun, 03 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2023/12/03/book-launch-modern-frontends-with-htmx/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;🎉 Thrilled to announce the official release of my new book &amp;#39;Modern frontends with htmx&amp;#39;! Discover how to master htmx with SpringBoot and Thymeleaf for rich, interactive web applications.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Ttcli release 1.0.0</title>
      <link>https://www.wimdeblauwe.com/blog/2023/10/25/ttcli-release-1.0.0/</link>
      <pubDate>Wed, 25 Oct 2023 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2023/10/25/ttcli-release-1.0.0/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I am happy to announce &lt;a href=&#34;https://github.com/wimdeblauwe/ttcli/releases/tag/1.0.0&#34;&gt;version 1.0.0 of ttcli&lt;/a&gt;.
Ttcli is a command line tool to generate a &lt;a href=&#34;https://spring.io/projects/spring-boot&#34;&gt;Spring Boot&lt;/a&gt; with &lt;a href=&#34;https://www.thymeleaf.org/&#34;&gt;Thymeleaf&lt;/a&gt; project with support for live reloading.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Taming Thymeleaf update for Thymeleaf 3.1.2</title>
      <link>https://www.wimdeblauwe.com/blog/2023/10/19/taming-thymeleaf-update-for-thymeleaf-3.1.2/</link>
      <pubDate>Thu, 19 Oct 2023 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2023/10/19/taming-thymeleaf-update-for-thymeleaf-3.1.2/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/thymeleaf/thymeleaf/milestone/69?closed=1&#34;&gt;Thymeleaf 3.1.2&lt;/a&gt; was released recently and is inluded in Spring Boot &lt;a href=&#34;https://github.com/spring-projects/spring-boot/releases/tag/v3.0.10&#34;&gt;3.0.10&lt;/a&gt; and &lt;a href=&#34;https://github.com/spring-projects/spring-boot/releases/tag/v3.1.3&#34;&gt;3.1.3&lt;/a&gt;.
For &lt;a href=&#34;https://github.com/thymeleaf/thymeleaf/commit/dd01397c785d7d34049eecd67440aef52398599d&#34;&gt;security reasons&lt;/a&gt;, it is no longer allowed for a Thymeleaf template to directly access &lt;code&gt;org.springframework.web.servlet.support.ServletUriComponentsBuilder&lt;/code&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This was used in my &lt;a href=&#34;https://www.wimdeblauwe.com/books/taming-thymeleaf/&#34;&gt;Taming Thymeleaf&lt;/a&gt; book to build a generic fragment that can be used for pagination controls.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you still use it, you get this exception while running the application:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;org.springframework.expression.EvaluationException:
Access is forbidden for type &amp;#39;org.springframework.web.servlet.support.ServletUriComponentsBuilder&amp;#39; in this expression context.&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Taming Thymeleaf update for Spring Boot 3</title>
      <link>https://www.wimdeblauwe.com/blog/2023/03/31/taming-thymeleaf-update-for-spring-boot-3/</link>
      <pubDate>Fri, 31 Mar 2023 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2023/03/31/taming-thymeleaf-update-for-spring-boot-3/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;My book &lt;a href=&#34;https://www.wimdeblauwe.com/books/taming-thymeleaf/&#34;&gt;Taming Thymeleaf&lt;/a&gt; has just been updated on &lt;a href=&#34;https://leanpub.com/taming-thymeleaf&#34;&gt;leanpub&lt;/a&gt; for Spring Boot 3.
This blog post will walk you through the most important changes if you want to upgrade to Spring Boot 3 from Spring Boot 2 if you used the previous version of the book.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Toasts notifications in Thymeleaf with Shoelace and htmx - part 2</title>
      <link>https://www.wimdeblauwe.com/blog/2023/02/21/toasts-notifications-in-thymeleaf-with-shoelace-and-htmx---part-2/</link>
      <pubDate>Tue, 21 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2023/02/21/toasts-notifications-in-thymeleaf-with-shoelace-and-htmx---part-2/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Yesterday, I shared how to &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2023/02/20/toasts-notifications-in-thymeleaf-with-shoelace-and-htmx/&#34;&gt;combine Thymeleaf, Shoelace and htmx to show toast notifications&lt;/a&gt; in your web application.
This worked pretty well and only needed a little JavaScript, but we can even further reduce the JavaScript used further &lt;em&gt;and&lt;/em&gt; make them even more useful as the same time!&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Toasts notifications in Thymeleaf with Shoelace and htmx</title>
      <link>https://www.wimdeblauwe.com/blog/2023/02/20/toasts-notifications-in-thymeleaf-with-shoelace-and-htmx/</link>
      <pubDate>Mon, 20 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2023/02/20/toasts-notifications-in-thymeleaf-with-shoelace-and-htmx/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I recently played around with &lt;a href=&#34;https://shoelace.style/&#34;&gt;Shoelace&lt;/a&gt;, a library of web components.
The nice thing about web components is that they are framework agnostic, so we can use them with Thymeleaf as well.
This blog post will show how to use the &lt;a href=&#34;https://shoelace.style/components/alert?id=toast-notifications&#34;&gt;Alert Toast&lt;/a&gt; component to show a confirmation or an error to the user.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;admonitionblock note&#34;&gt;
&lt;table&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td class=&#34;icon&#34;&gt;
&lt;i class=&#34;fa icon-note&#34; title=&#34;Note&#34;&gt;&lt;/i&gt;
&lt;/td&gt;
&lt;td class=&#34;content&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;See also &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2023/02/21/toasts-notifications-in-thymeleaf-with-shoelace-and-htmx-part-2/&#34;&gt;part 2&lt;/a&gt; for a similar demo where the HTML of the notifications is generated in Thymeleaf instead of in JavaScript.&lt;/p&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Google login with Spring Boot 3 and Thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2023/01/24/using-google-login-with-spring-boot-3-and-thymeleaf/</link>
      <pubDate>Tue, 24 Jan 2023 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2023/01/24/using-google-login-with-spring-boot-3-and-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Building a complete user management system yourself is quite some work.
However, you can very easily allow users to use social login with Google for example and avoid having to do all that work yourself.
This blog post will show how to quickly setup a Spring Boot with Thymeleaf project and secure it using Google login.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Release 1.0.0 and 2.0.0 of htmx-spring-boot-thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2022/12/11/release-1.0.0-and-2.0.0-of-htmx-spring-boot-thymeleaf/</link>
      <pubDate>Sun, 11 Dec 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/12/11/release-1.0.0-and-2.0.0-of-htmx-spring-boot-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I realized I have not written about the official releases I did for &lt;a href=&#34;https://github.com/wimdeblauwe/htmx-spring-boot-thymeleaf&#34;&gt;htmx-spring-boot-thymeleaf&lt;/a&gt; on this blog, so time to right this wrong now.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>The error-handling-spring-boot-starter library vs Spring 6 ProblemDetail</title>
      <link>https://www.wimdeblauwe.com/blog/2022/12/01/the-error-handling-spring-boot-starter-library-vs-spring-6-problemdetail/</link>
      <pubDate>Thu, 01 Dec 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/12/01/the-error-handling-spring-boot-starter-library-vs-spring-6-problemdetail/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I created the &lt;a href=&#34;https://github.com/wimdeblauwe/error-handling-spring-boot-starter&#34;&gt;error-handling-spring-boot-starter&lt;/a&gt; library for Spring Boot because I was unhappy with the default response that Spring Boot 2 provides out-of-the-box.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;With Spring Boot 3, there is now support for &lt;a href=&#34;https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#mvc-ann-rest-exceptions&#34;&gt;ProblemDetail&lt;/a&gt; and we can have a look on how that changes things.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Started my YouTube channel</title>
      <link>https://www.wimdeblauwe.com/blog/2022/11/25/started-my-youtube-channel/</link>
      <pubDate>Fri, 25 Nov 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/11/25/started-my-youtube-channel/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I started my YouTube channel this week.
It was quite something to come to this result, speaking to a camera is quite scary at first, but I think I got a nice result in the end 🙂&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Htmx authentication error handling</title>
      <link>https://www.wimdeblauwe.com/blog/2022/10/04/htmx-authentication-error-handling/</link>
      <pubDate>Tue, 04 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/10/04/htmx-authentication-error-handling/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Using &lt;a href=&#34;https://htmx.org/&#34;&gt;htmx&lt;/a&gt; is a great way to make your Spring Boot with Thymeleaf web application dynamic without page refreshes.
Since there are no page refreshes, but transparent AJAX calls going on, it is important to put in error handling code to ensure a good user experience in case something goes wrong.
This blog post shows how to do this.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Thymeleaf live reload with Spring Boot and Tailwind CSS</title>
      <link>https://www.wimdeblauwe.com/blog/2022/08/27/thymeleaf-live-reload-with-spring-boot-and-tailwind-css/</link>
      <pubDate>Sat, 27 Aug 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/08/27/thymeleaf-live-reload-with-spring-boot-and-tailwind-css/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This is the 3rd and final part of my series on live reloading with Thymeleaf and Spring Boot, this time focusing on &lt;a href=&#34;https://tailwindcss.com/&#34;&gt;Tailwind CSS&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Thymeleaf live reload with Spring Boot DevTools</title>
      <link>https://www.wimdeblauwe.com/blog/2022/07/04/thymeleaf-live-reload-with-spring-boot-devtools/</link>
      <pubDate>Mon, 04 Jul 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/07/04/thymeleaf-live-reload-with-spring-boot-devtools/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In my blog post of yesterday, I explained how to use &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2022/07/03/thymeleaf-live-reload-with-npm-scripts/&#34;&gt;Thymeleaf live reload with npm scripts&lt;/a&gt;.
Quickly after announcing the blog post on Twitter, &lt;a href=&#34;https://twitter.com/odrotbohm&#34;&gt;Oliver Drotbohm&lt;/a&gt; asked me why I didn’t just use &lt;a href=&#34;https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.devtools&#34;&gt;Spring Boot DevTools&lt;/a&gt; instead.
A valid question and one I will address in this follow-up post.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Thymeleaf live reload with npm scripts</title>
      <link>https://www.wimdeblauwe.com/blog/2022/07/03/thymeleaf-live-reload-with-npm-scripts/</link>
      <pubDate>Sun, 03 Jul 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/07/03/thymeleaf-live-reload-with-npm-scripts/</guid>
      <description>&lt;div class=&#34;admonitionblock note&#34;&gt;
&lt;table&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td class=&#34;icon&#34;&gt;
&lt;i class=&#34;fa icon-note&#34; title=&#34;Note&#34;&gt;&lt;/i&gt;
&lt;/td&gt;
&lt;td class=&#34;content&#34;&gt;
UPDATE: I created a follow-up blog &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2022/07/04/thymeleaf-live-reload-with-spring-boot-devtools/&#34;&gt;Thymeleaf live reload with Spring Boot DevTools&lt;/a&gt; that shows a way to have Live Reload with a little less setup work, but some important drawbacks as well in my opionion.
Be sure to read both blog posts to get an informed opinion about which path to take.
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&#34;admonitionblock tip&#34;&gt;
&lt;table&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td class=&#34;icon&#34;&gt;
&lt;i class=&#34;fa icon-tip&#34; title=&#34;Tip&#34;&gt;&lt;/i&gt;
&lt;/td&gt;
&lt;td class=&#34;content&#34;&gt;
If you want to add Tailwind CSS to your project, go to &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2022/08/27/thymeleaf-live-reload-with-spring-boot-and-tailwind-css/&#34;&gt;Thymeleaf live reload with Spring Boot and Tailwind CSS&lt;/a&gt; after you applied what is shown here.
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In my book &lt;a href=&#34;https://www.wimdeblauwe.com/books/taming-thymeleaf/&#34;&gt;Taming Thymeleaf&lt;/a&gt; I use &lt;a href=&#34;https://gulpjs.com/&#34;&gt;Gulp&lt;/a&gt; to setup the frontend build pipeline and have live reloading during development.
For the workshop I gave at &lt;a href=&#34;https://2022.springio.net/&#34;&gt;Spring I/O 2022 Barcelona&lt;/a&gt;, I used a different approach using NPM scripts.
This avoids the extra gulp dependency with sometimes things that are not up-to-date anymore.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Thymeleaf and htmx with out of band swaps</title>
      <link>https://www.wimdeblauwe.com/blog/2022/06/15/thymeleaf-and-htmx-with-out-of-band-swaps/</link>
      <pubDate>Wed, 15 Jun 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/06/15/thymeleaf-and-htmx-with-out-of-band-swaps/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The &lt;a href=&#34;https://htmx.org&#34;&gt;htmx&lt;/a&gt; JavaScript library has a very neat feature called &lt;a href=&#34;https://htmx.org/docs/#oob_swaps&#34;&gt;Out of Band Swaps&lt;/a&gt;.
This blog post shows how to use this with &lt;a href=&#34;https://www.thymeleaf.org/&#34;&gt;Thymeleaf&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Error handling with Spring WebFlux</title>
      <link>https://www.wimdeblauwe.com/blog/2022/04/11/error-handling-with-spring-webflux/</link>
      <pubDate>Mon, 11 Apr 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/04/11/error-handling-with-spring-webflux/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;My &lt;a href=&#34;https://github.com/wimdeblauwe/error-handling-spring-boot-starter&#34;&gt;error-handling-spring-boot-starter&lt;/a&gt; library had its first release almost 2 years ago.
The &lt;a href=&#34;https://github.com/wimdeblauwe/error-handling-spring-boot-starter/issues/2&#34;&gt;first reported issue&lt;/a&gt; came soon after with a request to support Spring WebFlux.
As I don’t have any Spring WebFlux projects myself, it was pretty low on my priority list.
Especially as it did not seem trivial to add support.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Luckily, about a month ago &lt;a href=&#34;https://github.com/fabiomarini&#34;&gt;Fabio Marini&lt;/a&gt; opened a PR with all the building blocks I needed to add support for Spring WebFlux to the library.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/wimdeblauwe/error-handling-spring-boot-starter/releases/tag/3.0.0&#34;&gt;Version 3.0.0&lt;/a&gt; has now been released which can be used with Spring WebFlux.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Bootstrap Toggle clone with Tailwind CSS and Alpine</title>
      <link>https://www.wimdeblauwe.com/blog/2022/03/21/bootstrap-toggle-clone-with-tailwind-css-and-alpine/</link>
      <pubDate>Mon, 21 Mar 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/03/21/bootstrap-toggle-clone-with-tailwind-css-and-alpine/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I migrated a project from &lt;a href=&#34;https://getbootstrap.com/&#34;&gt;Bootstrap 4&lt;/a&gt; with the &lt;a href=&#34;https://github.com/tafcoder/sleek-dashboard&#34;&gt;Sleek dashboard template&lt;/a&gt; to &lt;a href=&#34;https://tailwindcss.com/&#34;&gt;Tailwind CSS&lt;/a&gt; as Bootstrap 4 stopped having bugfixes on 2021-07-01, and there is no version for Bootstrap 5.
Anyways, I like Tailwind CSS a lot more to work with :)&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;One of the components that the project used is &lt;a href=&#34;https://www.bootstraptoggle.com/&#34;&gt;Bootstrap Toggle&lt;/a&gt;, which makes a simple checkbox look a lot better.
As the project kicked out Bootstrap, I needed to build a replacement for it. This blog entry will explain how I did so step-by-step using Tailwind CSS and &lt;a href=&#34;https://alpinejs.dev/&#34;&gt;Alpine.js&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Spring Boot request parameters validation</title>
      <link>https://www.wimdeblauwe.com/blog/2022/02/23/spring-boot-request-parameters-validation/</link>
      <pubDate>Wed, 23 Feb 2022 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2022/02/23/spring-boot-request-parameters-validation/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I released a new version 2.1.0 of the &lt;a href=&#34;https://github.com/wimdeblauwe/error-handling-spring-boot-starter&#34;&gt;Error Handling Spring Boot Starter&lt;/a&gt; last week.
It supports nice error messages for validation of request parameters now.
This blog post shows some more detail on how you can do validation of request parameters.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Taming Thymeleaf 2.0 release</title>
      <link>https://www.wimdeblauwe.com/blog/2021/12/23/taming-thymeleaf-2.0-release/</link>
      <pubDate>Tue, 23 Nov 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/12/23/taming-thymeleaf-2.0-release/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;My book Taming Thymeleaf has been updated for Java 17, Spring Boot 2.6 and Tailwind CSS 3.0.
This update is free for all &lt;a href=&#34;https://leanpub.com/taming-thymeleaf&#34;&gt;Leanpub&lt;/a&gt; readers.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Server-Sent Events with Thymeleaf and HTMX</title>
      <link>https://www.wimdeblauwe.com/blog/2021/11/23/using-server-sent-events-with-thymeleaf-and-htmx/</link>
      <pubDate>Tue, 23 Nov 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/11/23/using-server-sent-events-with-thymeleaf-and-htmx/</guid>
      <description>&lt;div class=&#34;admonitionblock note&#34;&gt;
&lt;table&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td class=&#34;icon&#34;&gt;
&lt;i class=&#34;fa icon-note&#34; title=&#34;Note&#34;&gt;&lt;/i&gt;
&lt;/td&gt;
&lt;td class=&#34;content&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post uses htmx 1.6. In htmx 1.7, server-sent events support has been moved to &lt;a href=&#34;https://htmx.org/extensions/server-sent-events/&#34;&gt;an extension&lt;/a&gt;. The example code on GitHub has been updated to work with htmx 1.7. See &lt;a href=&#34;https://github.com/wimdeblauwe/blog-example-code/commit/b46b15b2d75bcae8edad6f8e2a3bdb9b374084cc&#34;&gt;commit b46b15b&lt;/a&gt; for the (small) changes that are needed.&lt;/p&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;It is possible to push information from a Spring Boot backend to the UI using either Websockets or Server-Sent Events.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show how to use Thymeleaf with HTMX to push information from the server to the UI with Server-Sent Events.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Spring Boot ObjectMapper with hibernate-types</title>
      <link>https://www.wimdeblauwe.com/blog/2021/11/18/using-spring-boot-objectmapper-with-hibernate-types/</link>
      <pubDate>Thu, 18 Nov 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/11/18/using-spring-boot-objectmapper-with-hibernate-types/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The &lt;a href=&#34;https://github.com/vladmihalcea/hibernate-types&#34;&gt;hibernate-types&lt;/a&gt; library has extra types that are not found in Hibernate by default.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;One of the most interesting aspects of the library is the support for JSON types.
Unfortunately, by default, the library will not pick up any Jackson configuration or custom serializers defined in your Spring Boot project.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show how to configure things so the JSON related configuration of Spring Boot is used.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>TodoMVC with Thymeleaf and HTMX</title>
      <link>https://www.wimdeblauwe.com/blog/2021/10/04/todomvc-with-thymeleaf-and-htmx/</link>
      <pubDate>Mon, 04 Oct 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/10/04/todomvc-with-thymeleaf-and-htmx/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2021/09/20/todomvc-with-spring-boot-and-thymeleaf-part-1/&#34;&gt;TodoMVC with Spring Boot and Thymeleaf&lt;/a&gt;, we implemented a &lt;a href=&#34;https://todomvc.com/&#34;&gt;TodoMVC&lt;/a&gt; clone using Spring MVC and Thymeleaf.
In such a setup, each action triggers a page refresh.
While this works just fine, you might want to give a more Single Page Application (SPA) spice to the experience and avoid page refreshes.
This blog post will show how to use HTMX to accomplish this.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>TodoMVC with Spring Boot and Thymeleaf (Part 3)</title>
      <link>https://www.wimdeblauwe.com/blog/2021/09/27/todomvc-with-spring-boot-and-thymeleaf-part-3/</link>
      <pubDate>Mon, 27 Sep 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/09/27/todomvc-with-spring-boot-and-thymeleaf-part-3/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2021/09/23/todomvc-with-spring-boot-and-thymeleaf-part-2/&#34;&gt;Part 2&lt;/a&gt;, we implemented completion and deletion of todo items.
In this last part of the 3-part series, we’ll finish the implementation of our &lt;a href=&#34;https://todomvc.com/&#34;&gt;TodoMVC&lt;/a&gt; clone.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>TodoMVC with Spring Boot and Thymeleaf (Part 2)</title>
      <link>https://www.wimdeblauwe.com/blog/2021/09/23/todomvc-with-spring-boot-and-thymeleaf-part-2/</link>
      <pubDate>Thu, 23 Sep 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/09/23/todomvc-with-spring-boot-and-thymeleaf-part-2/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2021/09/20/todomvc-with-spring-boot-and-thymeleaf-part-1/&#34;&gt;Part 1&lt;/a&gt;, we implemented &lt;a href=&#34;https://todomvc.com/&#34;&gt;TodoMVC&lt;/a&gt; using Spring Boot and Thymeleaf.
The application already allows to add todo items and show them.
We will continue in this part with completing items and deleting them.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>TodoMVC with Spring Boot and Thymeleaf (Part 1)</title>
      <link>https://www.wimdeblauwe.com/blog/2021/09/20/todomvc-with-spring-boot-and-thymeleaf-part-1/</link>
      <pubDate>Mon, 20 Sep 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/09/20/todomvc-with-spring-boot-and-thymeleaf-part-1/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The &lt;a href=&#34;https://todomvc.com/&#34;&gt;TodoMVC&lt;/a&gt; project has implementations of a simple todo list application
for many different frontend frameworks.
The goal is that a Single Page Application is implemented in a varity of technologies to be able to compare them.
I wanted to stretch the concept a bit and create a Spring Boot backend with Thymeleaf server-side rendered HTML page just to see how that could work and how it would affect the user experience.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Thymeleaf iteration and fragments</title>
      <link>https://www.wimdeblauwe.com/blog/2021/09/14/thymeleaf-iteration-and-fragments/</link>
      <pubDate>Wed, 15 Sep 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/09/14/thymeleaf-iteration-and-fragments/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Iteration in Thymeleaf templates is done using &lt;code&gt;th:each&lt;/code&gt;.
But combining it with fragments can yield some surprising results.
This blog post shows an overview of what can happen and common pitfalls to watch out for.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Java 16 records with Thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2021/07/25/using-records-with-thymeleaf/</link>
      <pubDate>Sun, 25 Jul 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/07/25/using-records-with-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Since Java 16, we can use records. This blog post shows how Thymeleaf supports this.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Form handling with Thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2021/05/23/form-handling-with-thymeleaf/</link>
      <pubDate>Sun, 23 May 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/05/23/form-handling-with-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This post explains in detail how you should implement a HTML form with Thymeleaf and Spring Boot.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Error Handling Spring Boot Starter release 1.6.0</title>
      <link>https://www.wimdeblauwe.com/blog/2021/05/01/error-handling-spring-boot-starter-release-1.6.0/</link>
      <pubDate>Sat, 01 May 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/05/01/error-handling-spring-boot-starter-release-1.6.0/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;There is a new version 1.6.0 of the &lt;a href=&#34;https://github.com/wimdeblauwe/error-handling-spring-boot-starter&#34;&gt;Error Handling Spring Boot Starter&lt;/a&gt;. A lot of new things have been added since I &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2021/02/18/error-handling-spring-boot-starter-release-1.2.0/&#34;&gt;lasted blogged about version 1.2.0 of this library&lt;/a&gt;, so it is time for a round-up to show the new goodies.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Equals and hashcode implementation considerations</title>
      <link>https://www.wimdeblauwe.com/blog/2021/04/26/equals-and-hashcode-implementation-considerations/</link>
      <pubDate>Mon, 26 Apr 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/04/26/equals-and-hashcode-implementation-considerations/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I always struggled with how to implement equals and hashcode, until I learned about the difference between entities and value objects.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using HTML select options with Thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2021/04/16/using-html-select-options-with-thymeleaf/</link>
      <pubDate>Fri, 16 Apr 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/04/16/using-html-select-options-with-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show the best way to implement a HTML &lt;code&gt;&amp;lt;select/&amp;gt;&lt;/code&gt; to allow the user to select between one of several options.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>AttributeConverter vs Embeddable in JPA</title>
      <link>https://www.wimdeblauwe.com/blog/2021/03/01/attributeconverter-vs-embeddable-in-jpa/</link>
      <pubDate>Mon, 01 Mar 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/03/01/attributeconverter-vs-embeddable-in-jpa/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;There are 2 choices when using Value Objects in JPA entities with Spring Boot: &lt;code&gt;AttributeConverter&lt;/code&gt; or &lt;code&gt;Embeddable&lt;/code&gt;.
This blog post shows the differences between those and some guidelines when to use what.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Error Handling Spring Boot Starter release 1.2.0</title>
      <link>https://www.wimdeblauwe.com/blog/2021/02/18/error-handling-spring-boot-starter-release-1.2.0/</link>
      <pubDate>Thu, 18 Feb 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/02/18/error-handling-spring-boot-starter-release-1.2.0/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I just did release 1.2.0 of the &lt;a href=&#34;https://github.com/wimdeblauwe/error-handling-spring-boot-starter&#34;&gt;error-handling-spring-boot-starter&lt;/a&gt; library. It allows now to customize how the error response is serialized to JSON.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>JUnit 5 test class orderer for Spring Boot</title>
      <link>https://www.wimdeblauwe.com/blog/2021/02/12/junit-5-test-class-orderer-for-spring-boot/</link>
      <pubDate>Fri, 12 Feb 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/02/12/junit-5-test-class-orderer-for-spring-boot/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The upcoming JUnit 5.8.0 will support ordering the test classes in an arbitrary way. This blog post will show how to use that to order your Spring Boot tests from unit tests over test slices to the full integration tests, so the quickest tests run first.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using StringTrimmerEditor with Thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2021/01/25/using-stringtrimmereditor-with-thymeleaf/</link>
      <pubDate>Mon, 25 Jan 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/01/25/using-stringtrimmereditor-with-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Trimming whitespace is one of the little things that a developer should take care of when coding text inputs in an HTML form.
Remembering to do this for each input will get tedious soon, and there is a big chance that you might forget about it sooner or later.
Luckily, Spring has the &lt;a href=&#34;https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/propertyeditors/StringTrimmerEditor.html&#34;&gt;StringTrimmerEditor&lt;/a&gt; class that allows to globally configure the trimming once.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Hugo with Tailwind CSS 2</title>
      <link>https://www.wimdeblauwe.com/blog/2021/01/18/using-hugo-with-tailwind-css-2/</link>
      <pubDate>Mon, 18 Jan 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/01/18/using-hugo-with-tailwind-css-2/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;https://tailwindcss.com/&#34;&gt;Tailwind CSS&lt;/a&gt; version 2 has recently been released.
This blog post shows how to add Tailwind CSS to your &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; generated blog.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Make sure you &lt;a href=&#34;https://gohugo.io/getting-started/installing/&#34;&gt;have Hugo installed&lt;/a&gt; to follow along. I am using Hugo 0.79.0.
You also need to have &lt;code&gt;npm&lt;/code&gt; installed. I am using 6.14.7.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;olist arabic&#34;&gt;
&lt;ol class=&#34;arabic&#34;&gt;
&lt;li&gt;
&lt;p&gt;Create a new Hugo site:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;hugo new site my-hugo-site&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;em&gt;my-hugo-site&lt;/em&gt; can be anything you want, it will also be the directory where the files are created.&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change to the generated directory and create an empty &lt;code&gt;package.json&lt;/code&gt; file to bootstrap the &lt;code&gt;npm&lt;/code&gt; project:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;cd my-hugo-site
npm init&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Enter the requested information, or just go with the defaults.&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install Tailwind CSS as an npm dependency together with the other needed dependencies:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;npm install tailwindcss postcss postcss-cli autoprefixer&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This should result in an update of &lt;code&gt;package.json&lt;/code&gt; to have a &lt;code&gt;dependencies&lt;/code&gt; section like this:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;json&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;err&#34;&gt;...&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;dependencies&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;autoprefixer&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;^10.2.1&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;postcss&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;^8.2.4&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;postcss-cli&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;^8.3.1&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;tailwindcss&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;^2.0.2&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create &lt;code&gt;postcss.config.js&lt;/code&gt; at the root of the project with the following contents:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;js&#34;&gt;&lt;span class=&#34;nx&#34;&gt;module&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;exports&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
    &lt;span class=&#34;na&#34;&gt;plugins&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;na&#34;&gt;tailwindcss&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{},&lt;/span&gt;
        &lt;span class=&#34;na&#34;&gt;autoprefixer&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{}&lt;/span&gt;
    &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Initialize the Tailwind CSS configuration file:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;npx tailwindcss init&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This generates a &lt;code&gt;tailwind.config.js&lt;/code&gt; file. This allows to &lt;a href=&#34;https://tailwindcss.com/docs/configuration&#34;&gt;configure and customize&lt;/a&gt; Tailwind CSS.&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Update the &lt;code&gt;purge&lt;/code&gt; option in &lt;code&gt;tailwind.config.js&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;js&#34;&gt;&lt;span class=&#34;nx&#34;&gt;module&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;exports&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
  &lt;span class=&#34;na&#34;&gt;purge&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;dl&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;layouts/**/*.html&lt;/span&gt;&lt;span class=&#34;dl&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;
  &lt;span class=&#34;na&#34;&gt;darkMode&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;false&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;// or &amp;#39;media&amp;#39; or &amp;#39;class&amp;#39;&lt;/span&gt;
  &lt;span class=&#34;na&#34;&gt;theme&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
    &lt;span class=&#34;na&#34;&gt;extend&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{},&lt;/span&gt;
  &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;
  &lt;span class=&#34;na&#34;&gt;variants&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
    &lt;span class=&#34;na&#34;&gt;extend&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{},&lt;/span&gt;
  &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;
  &lt;span class=&#34;na&#34;&gt;plugins&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[],&lt;/span&gt;
&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create &lt;code&gt;assets/css/main.css&lt;/code&gt; with the Tailwind CSS directives (You will need to create the &lt;code&gt;assets/css&lt;/code&gt; directory manually):&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;@tailwind base;
@tailwind components;
@tailwind utilities;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create &lt;code&gt;layouts/_default/baseof.html&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;html&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;html&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;lang=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;{{ .Language.Lang }}&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    {{ partial &amp;#34;head.html&amp;#34; . }}
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
{{ block &amp;#34;main&amp;#34; . }}{{ end }}
{{ partial &amp;#34;footer.html&amp;#34; . }}
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create &lt;code&gt;layouts/partials/head.html&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;html&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;meta&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;http-equiv=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;Content-Type&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;content=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;text/html&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;charset=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;UTF-8&amp;#34;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;meta&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;http-equiv=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;X-UA-Compatible&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;content=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;IE=edge,chrome=1&amp;#34;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;meta&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;name=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;viewport&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;content=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;width=device-width, initial-scale=1.0&amp;#34;&lt;/span&gt; &lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;

{{ $styles := resources.Get &amp;#34;css/main.css&amp;#34; | postCSS }}

{{ if .Site.IsServer }}
  &lt;span class=&#34;nt&#34;&gt;&amp;lt;link&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;rel=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;stylesheet&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;href=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;{{ $styles.RelPermalink }}&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
{{ else }}
  {{ $styles := $styles | minify | fingerprint | resources.PostProcess }}
  &lt;span class=&#34;nt&#34;&gt;&amp;lt;link&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;rel=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;stylesheet&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;href=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;{{ $styles.RelPermalink }}&amp;#34;&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;integrity=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;{{ $styles.Data.Integrity }}&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;/&amp;gt;&lt;/span&gt;
{{ end }}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The &lt;code&gt;.Site.IsServer&lt;/code&gt; flag is &lt;code&gt;true&lt;/code&gt; when running the live reload server. When building for production, this is &lt;code&gt;false&lt;/code&gt;. This allows to only minify and purge the CSS when building the production site.&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create &lt;code&gt;layouts/partials/footer.html&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;html&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;footer&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;class=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;bg-gray-900&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;class=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;flex justify-center text-white py-1&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;This is the footer&lt;span class=&#34;nt&#34;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/footer&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create &lt;code&gt;layouts/index.html&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;html&#34;&gt;{{ define &amp;#34;main&amp;#34; }}
&lt;span class=&#34;nt&#34;&gt;&amp;lt;main&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;class=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;container mx-auto px-4 py-24 bg-gray-100&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Welcome to Hugo with Tailwind CSS&lt;span class=&#34;nt&#34;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;class=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;text-gray-500&amp;#34;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt;&lt;/span&gt;This is an example site with Tailwind CSS 2&lt;span class=&#34;nt&#34;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/main&amp;gt;&lt;/span&gt;
{{ end }}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Start the Hugo live reload server:&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;hugo server&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>String concatenation with Thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2021/01/11/string-concatenation-with-thymeleaf/</link>
      <pubDate>Mon, 11 Jan 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/01/11/string-concatenation-with-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This post shows the various ways that you can concatenate string values with Thymeleaf.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Practical Guide to Building an API Back End with Spring Boot made it to the Best New REST API Books</title>
      <link>https://www.wimdeblauwe.com/blog/2021/01/08/rest-api-book-book-authority-award/</link>
      <pubDate>Fri, 08 Jan 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/01/08/rest-api-book-book-authority-award/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I’m happy to announce that my book, &amp;#34;Practical Guide to Building an API Back End with Spring Boot&amp;#34;, made it to BookAuthority’s Best New REST API Books:
&lt;a class=&#34;bare&#34; href=&#34;https://bookauthority.org/books/new-rest-api-books?t=16x1w7&amp;amp;s=award&amp;amp;book=0359044522&#34;&gt;https://bookauthority.org/books/new-rest-api-books?t=16x1w7&amp;amp;s=award&amp;amp;book=0359044522&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;BookAuthority collects and ranks the best books in the world, and it is a great honor to get this kind of recognition. Thank you for all your support!
The book is available for purchase &lt;a href=&#34;https://www.amazon.com/dp/0359044522?tag=uuid10-20&#34;&gt;on Amazon&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Google Charts with Thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2021/01/05/using-google-charts-with-thymeleaf/</link>
      <pubDate>Tue, 05 Jan 2021 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2021/01/05/using-google-charts-with-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;There are a few options to add charts to your Thymeleaf application, but one of the easiest is to integrate &lt;a href=&#34;https://developers.google.com/chart&#34;&gt;Google Charts&lt;/a&gt;.
They are powerful, simple to use and free.
This blog post will show how we can integrate them into a Thymeleaf/Spring Boot application.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Architecture Decision Records</title>
      <link>https://www.wimdeblauwe.com/blog/2020/12/26/architecture-decision-records/</link>
      <pubDate>Sat, 26 Dec 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/12/26/architecture-decision-records/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I have been using Architecture Decision Records (ADR) documents on my latest projects. This blog post will show you what they are and how you can use them.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I will also show a few examples that can serve as inspiration for your project.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Release Taming Thymeleaf book</title>
      <link>https://www.wimdeblauwe.com/blog/2020/12/21/release-taming-thymeleaf/</link>
      <pubDate>Mon, 21 Dec 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/12/21/release-taming-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I am thrilled to announce the release of my book &lt;a href=&#34;https://leanpub.com/taming-thymeleaf&#34;&gt;Taming Thymeleaf on leanpub&lt;/a&gt;.
This book aims to be a valuable resource to learn about &lt;a href=&#34;https://www.thymeleaf.org/&#34;&gt;Thymeleaf&lt;/a&gt; with &lt;a href=&#34;https://spring.io/projects/spring-boot&#34;&gt;Spring Boot&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;https://www.wimdeblauwe.com/images/2020/12/cover-3D.png&#34; alt=&#34;cover 3D&#34;/&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Generate Leanpub TOC from Asciidoc files</title>
      <link>https://www.wimdeblauwe.com/blog/2020/10/09/generate-leanpub-toc-from-asciidoc-files/</link>
      <pubDate>Fri, 09 Oct 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/10/09/generate-leanpub-toc-from-asciidoc-files/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I just released the first version of my &lt;a href=&#34;https://leanpub.com/taming-thymeleaf&#34;&gt;Taming Thymeleaf book on leanpub&lt;/a&gt;.
Since I am using Asciidoctor to generate the PDF, there is no automatic table of contents generation for the landing page.
Luckily, leanpub allows to enter some HTML to manually create the TOC.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;A perfect opportunity to use my rusty Groovy skills once more to generate this HTML.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I have my Asciidoc files all in a &lt;code&gt;_chapters&lt;/code&gt; directory grouped per chapter:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Error handling library for Spring Boot</title>
      <link>https://www.wimdeblauwe.com/blog/2020/07/20/error-handling-library-spring-boot/</link>
      <pubDate>Mon, 20 Jul 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/07/20/error-handling-library-spring-boot/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;An important part of any decent REST API is good error handling.
Good error handling has 2 major goals:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;It will help the developers of your API to understand exactly what is wrong when they learn to work with your API.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It will allow to have the mobile app or Single Page Application or whatever that is using your app to give precise error message to the end-user of the application.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We will first take a look at what Spring Boot offers out-of-the-box, and next look at how &lt;a href=&#34;https://github.com/wimdeblauwe/error-handling-spring-boot-starter&#34;&gt;Error Handling Spring Boot Starter&lt;/a&gt; improves this.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Generate all enum values for Spring REST Docs documentation</title>
      <link>https://www.wimdeblauwe.com/blog/2020/06/08/generate-enum-values-spring-rest-docs/</link>
      <pubDate>Mon, 08 Jun 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/06/08/generate-enum-values-spring-rest-docs/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you document your REST API with &lt;a href=&#34;https://spring.io/projects/spring-restdocs&#34;&gt;Spring REST Docs&lt;/a&gt;, you have probably came across fields that refer to enum values.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This little tip will show you how to automatically include all enum values in the description of the field.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>AssertJ test cause of exception</title>
      <link>https://www.wimdeblauwe.com/blog/2020/05/08/assertj-test-cause-of-exception/</link>
      <pubDate>Fri, 08 May 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/05/08/assertj-test-cause-of-exception/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;AssertJ 3.16.0 has just been &lt;a href=&#34;https://assertj.github.io/doc/#assertj-core-3-16-0-release-notes&#34;&gt;released&lt;/a&gt;.
It has a feature &lt;a href=&#34;https://github.com/joel-costigliola/assertj-core/issues/1776&#34;&gt;I contributed to&lt;/a&gt; allow testing the (root) cause of an exception.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show how to use this to our advantage.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Spring Boot test slices with custom annotations</title>
      <link>https://www.wimdeblauwe.com/blog/2020/04/17/spring-boot-test-slices-with-custom-annotations/</link>
      <pubDate>Fri, 17 Apr 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/04/17/spring-boot-test-slices-with-custom-annotations/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Spring Boot has first-class support for testing, both unit and integration testing.
To keep your tests running fast, there is the concept of &lt;a href=&#34;https://docs.spring.io/spring-boot/docs/2.2.6.RELEASE/reference/html/spring-boot-features.html#boot-features-testing-spring-boot-applications-testing-autoconfigured-tests&#34;&gt;Test Slicing&lt;/a&gt;.
By only loading the relevant part of the complete application in a test, the tests
are focused and run faster since Spring does not need to load everything.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show how to use a custom annotation to ensure your unit/integration tests are all consistent with little effort.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Port of the Laravel Intermediate Task List tutorial to Spring Boot with Thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2020/03/10/laravel-intermediate-task-list-port-to-spring/</link>
      <pubDate>Tue, 10 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/03/10/laravel-intermediate-task-list-port-to-spring/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;https://laravel.com/&#34;&gt;Laravel&lt;/a&gt; is a very interesting PHP framework for building web applications.
Their docs have &lt;a href=&#34;https://laravel.com/docs/5.2/quickstart-intermediate&#34;&gt;a nice tutorial&lt;/a&gt; to build a task list to explain many of their concepts.
This blog post basically mirrors that tutorial but shows how to build the same web application using &lt;a href=&#34;https://spring.io/projects/spring-boot&#34;&gt;Spring Boot&lt;/a&gt; and &lt;a href=&#34;https://www.thymeleaf.org/&#34;&gt;Thymeleaf&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>UUID based Value Objects with Spring Boot REST API</title>
      <link>https://www.wimdeblauwe.com/blog/2020/03/03/uuid-based-value-objects-with-spring-boot-rest-api/</link>
      <pubDate>Tue, 03 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/03/03/uuid-based-value-objects-with-spring-boot-rest-api/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2020/02/26/value-objects-with-spring-boot-rest-api/&#34;&gt;previous blog post&lt;/a&gt; showed how
to use Value Objects with a REST API with Spring Boot. In that post, the value object used a &lt;code&gt;long&lt;/code&gt; under the hood.
This post shows an alternative using &lt;code&gt;UUID&lt;/code&gt; objects instead.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Value Objects with Spring Boot REST API</title>
      <link>https://www.wimdeblauwe.com/blog/2020/02/26/value-objects-with-spring-boot-rest-api/</link>
      <pubDate>Wed, 26 Feb 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/02/26/value-objects-with-spring-boot-rest-api/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2019/2019-10-27-using-primary-key-objects-with-spring-data-and-hibernate/&#34;&gt;Using primary key objects with Spring Data and Hibernate&lt;/a&gt;, I explained how
to use &lt;a href=&#34;https://martinfowler.com/bliki/ValueObject.html&#34;&gt;Value Object&lt;/a&gt;s for interaction with the database.
This time, I will focus on how to do something similar at &amp;#34;the other end&amp;#34; of the application, in the REST API.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Tailwind CSS with Spring Boot and Thymeleaf</title>
      <link>https://www.wimdeblauwe.com/blog/2020/02/17/using-tailwind-css-with-spring-boot-and-thymeleaf/</link>
      <pubDate>Mon, 17 Feb 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/02/17/using-tailwind-css-with-spring-boot-and-thymeleaf/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;https://tailwindcss.com/&#34;&gt;Tailwind CSS&lt;/a&gt; is an interesting utility-first CSS framework for rapidly building custom designs.
It is perfectly possible to use this in a &lt;a href=&#34;https://spring.io/projects/spring-boot&#34;&gt;Java Spring MVC application&lt;/a&gt; that uses &lt;a href=&#34;https://www.thymeleaf.org/&#34;&gt;Thymeleaf&lt;/a&gt; for server-side rendering.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Testcontainers-cypress release 0.4.0</title>
      <link>https://www.wimdeblauwe.com/blog/2020/2020-02-11-testcontainers-cypress-release-0.4.0/</link>
      <pubDate>Tue, 11 Feb 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/2020-02-11-testcontainers-cypress-release-0.4.0/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/wimdeblauwe/testcontainers-cypress/releases/tag/testcontainers-cypress-0.4.0&#34;&gt;Testcontainers-cypress 0.4.0&lt;/a&gt; is released with support for Cypress 4.0.1 which has Firefox support.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Welcome to the new blog</title>
      <link>https://www.wimdeblauwe.com/blog/2020/2020-02-05-welcome-to-the-new-blog/</link>
      <pubDate>Wed, 05 Feb 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/2020-02-05-welcome-to-the-new-blog/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This post marks the start of the new blog at &lt;a href=&#34;https://www.wimdeblauwe.com&#34;&gt;https://www.wimdeblauwe.com&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The content of the old blog at &lt;a href=&#34;https://wimdeblauwe.wordpress.com/&#34;&gt;https://wimdeblauwe.wordpress.com/&lt;/a&gt; has all been migrated here.
Do let me know if there would be an error or something missing on a page.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Example usage of testcontainers cypress</title>
      <link>https://www.wimdeblauwe.com/blog/2020/2020-02-01-example-usage-of-testcontainers-cypress/</link>
      <pubDate>Sat, 01 Feb 2020 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2020/2020-02-01-example-usage-of-testcontainers-cypress/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;My project &lt;a href=&#34;https://github.com/wimdeblauwe/testcontainers-cypress&#34;&gt;testcontainers-cypress&lt;/a&gt; allows to run &lt;a href=&#34;https://www.cypress.io/&#34;&gt;Cypress&lt;/a&gt; tests from JUnit using the excellent &lt;a href=&#34;https://www.testcontainers.org/&#34;&gt;Testcontainers&lt;/a&gt; project. In this blog post, I will show how to get started with the project in a very simple &lt;a href=&#34;https://spring.io/projects/spring-boot&#34;&gt;Spring Boot&lt;/a&gt; application.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Customization of Asciidoctor PDF output</title>
      <link>https://www.wimdeblauwe.com/blog/2019/2019-12-20-customization-of-asciidoctor-pdf-output/</link>
      <pubDate>Fri, 20 Dec 2019 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2019/2019-12-20-customization-of-asciidoctor-pdf-output/</guid>
      <description>&lt;div class=&#34;admonitionblock caution&#34;&gt;
&lt;table&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td class=&#34;icon&#34;&gt;
&lt;i class=&#34;fa icon-caution&#34; title=&#34;Caution&#34;&gt;&lt;/i&gt;
&lt;/td&gt;
&lt;td class=&#34;content&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post was written for asciidoctor-pdf 1.x.
If you are using asciidoctor-pdf 2.x, then be aware that you need to use &lt;code&gt;pdf-themesdir&lt;/code&gt; and &lt;code&gt;pdf-theme&lt;/code&gt; in the Maven configuration.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;So replace:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;attributes&amp;gt;&lt;/span&gt;
  &lt;span class=&#34;nt&#34;&gt;&amp;lt;pdf-stylesdir&amp;gt;&lt;/span&gt;${project.basedir}/src/main/asciidoc/theme&lt;span class=&#34;nt&#34;&gt;&amp;lt;/pdf-stylesdir&amp;gt;&lt;/span&gt;
  &lt;span class=&#34;nt&#34;&gt;&amp;lt;pdf-style&amp;gt;&lt;/span&gt;pegus-digital&lt;span class=&#34;nt&#34;&gt;&amp;lt;/pdf-style&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/attributes&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;with:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;attributes&amp;gt;&lt;/span&gt;
  &lt;span class=&#34;nt&#34;&gt;&amp;lt;pdf-themesdir&amp;gt;&lt;/span&gt;${project.basedir}/src/main/asciidoc/theme&lt;span class=&#34;nt&#34;&gt;&amp;lt;/pdf-themesdir&amp;gt;&lt;/span&gt;
  &lt;span class=&#34;nt&#34;&gt;&amp;lt;pdf-theme&amp;gt;&lt;/span&gt;pegus-digital&lt;span class=&#34;nt&#34;&gt;&amp;lt;/pdf-theme&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/attributes&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Using &lt;a href=&#34;http://asciidoc.org/&#34;&gt;Asciidoc&lt;/a&gt; (the markup language) with the &lt;a href=&#34;https://asciidoctor.org/&#34;&gt;Asciidoctor&lt;/a&gt; toolchain is one of our favorite ways to write documentation. We mainly use it to create API documentation from our REST API backends using &lt;a href=&#34;https://spring.io/projects/spring-restdocs&#34;&gt;Spring REST Docs&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Asciidoctor supports a variety of output formats, where HTML and PDF are ones we used the most. While the default PDF output already looks very good, it is always nice to be able customize the output a bit to better align with the project the documentation is created for. This post will explain exactly how to do that.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using primary key objects with Spring Data and Hibernate</title>
      <link>https://www.wimdeblauwe.com/blog/2019/2019-10-27-using-primary-key-objects-with-spring-data-and-hibernate/</link>
      <pubDate>Sun, 27 Oct 2019 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2019/2019-10-27-using-primary-key-objects-with-spring-data-and-hibernate/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Most of the tutorials or blog posts that use Spring Data JPA use auto-generated primary keys.
This post shows how you can use primary key objects instead of primitives like &lt;code&gt;Long&lt;/code&gt; or &lt;code&gt;UUID&lt;/code&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Spring Boot and Thymeleaf with CSS JavaScript processing using Gulp</title>
      <link>https://www.wimdeblauwe.com/blog/2019/2019-10-20-spring-boot-and-thymeleaf-with-css-javascript-processing-using-gulp/</link>
      <pubDate>Sun, 20 Oct 2019 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2019/2019-10-20-spring-boot-and-thymeleaf-with-css-javascript-processing-using-gulp/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will explain how to setup a &lt;a href=&#34;https://spring.io/projects/spring-boot&#34;&gt;Spring Boot&lt;/a&gt; project with server-side HTML rendering using &lt;a href=&#34;https://www.thymeleaf.org/&#34;&gt;Thymeleaf&lt;/a&gt; templates.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Ensure JUnit test fails when Cypress tests fail</title>
      <link>https://www.wimdeblauwe.com/blog/2019/2019-06-16-ensure-junit-test-fails-when-cypress-tests-fail/</link>
      <pubDate>Sun, 16 Jun 2019 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2019/2019-06-16-ensure-junit-test-fails-when-cypress-tests-fail/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In my previous blog post on &lt;a href=&#34;https://wimdeblauwe.wordpress.com/2019/06/15/running-cypress-tests-with-testcontainers-for-a-spring-boot-with-thymeleaf-application/&#34;&gt;Running Cypress tests with TestContainers for a Spring Boot with Thymeleaf application&lt;/a&gt;, I explained how to run Cypress tests as part of a JUnit test. However, the example did not actually fail the test if there are test failures in Cypress. Oops :-)&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In order to do that, we can use the support that Testcontainers has for watching the log output and parse that.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This is the full code that will accomplish this and it will also print the number of run tests, number of passed tests and the number of failed tests:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Running Cypress tests with TestContainers for a Spring Boot with Thymeleaf application</title>
      <link>https://www.wimdeblauwe.com/blog/2019/2019-06-15-running-cypress-tests-with-testcontainers-for-a-spring-boot-with-thymeleaf-application/</link>
      <pubDate>Sat, 15 Jun 2019 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2019/2019-06-15-running-cypress-tests-with-testcontainers-for-a-spring-boot-with-thymeleaf-application/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;em&gt;UPDATE: The full test class code in this post does not actually fail the test when the Cypress tests fail. See my updated example at ./blog/2019/06/16/ensure-junit-test-fails-when-cypress-tests-fail/[Ensure JUnit test fails when Cypress tests fail].&lt;/em&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;At the last &lt;a href=&#34;https://ng-be.org/&#34;&gt;ng-be&lt;/a&gt; conference I saw a demo of &lt;a href=&#34;https://www.cypress.io/&#34;&gt;Cypress&lt;/a&gt;. Cypress allows to do functional testing of your web application, quite similar to Selenium for example, but still &lt;a href=&#34;https://docs.cypress.io/guides/overview/key-differences.html#Architecture&#34;&gt;quite different&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Ever since that time, I wanted to try it out, but never got around to it until this week. My application is not a Single Page Application, but after reading the post &lt;a href=&#34;https://mtlynch.io/painless-web-app-testing/&#34;&gt;End-to-End Testing Web Apps: The Painless Way&lt;/a&gt; I was convinced that it should be doable for my Spring Boot application that uses &lt;a href=&#34;https://www.thymeleaf.org/&#34;&gt;Thymeleaf&lt;/a&gt; for Server Side Rendering of the HTML pages.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Announcing BIOB  an binary object storage library</title>
      <link>https://www.wimdeblauwe.com/blog/2019/2019-02-21-announcing-biob--an-binary-object-storage-library/</link>
      <pubDate>Thu, 21 Feb 2019 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2019/2019-02-21-announcing-biob--an-binary-object-storage-library/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I am announcing a new open-source project I am working on: BIOB&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;It is still very early days, but there is already a fully functional local file system implementation and an in-memory implementation for testing. See &lt;a class=&#34;bare&#34; href=&#34;https://github.com/wimdeblauwe/biob&#34;&gt;https://github.com/wimdeblauwe/biob&lt;/a&gt; for full details and a usage example on how to use the library in your own project.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;It does not depend on Spring or Spring Boot, but I have used it in that context so far because that is what I use for all of my projects.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Version 1.0.2 of Practical Guide to Building an API Back End with Spring Boot released</title>
      <link>https://www.wimdeblauwe.com/blog/2018/2018-12-24-version-1.0.2-of-practical-guide-to-building-an-api-back-end-with-spring-boot-released/</link>
      <pubDate>Mon, 24 Dec 2018 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2018/2018-12-24-version-1.0.2-of-practical-guide-to-building-an-api-back-end-with-spring-boot-released/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;You can download an updated version of my book &amp;#39;Practical Guide to Building an API Back End with Spring Boot&amp;#39; from InfoQ: &lt;a class=&#34;bare&#34; href=&#34;https://www.infoq.com/minibooks/spring-boot-building-api-backend&#34;&gt;https://www.infoq.com/minibooks/spring-boot-building-api-backend&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The changelog can be viewed at &lt;a class=&#34;bare&#34; href=&#34;https://wimdeblauwe.wordpress.com/my-spring-boot-book/&#34;&gt;https://wimdeblauwe.wordpress.com/my-spring-boot-book/&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Switching between JDK 8 and 11 using SDKMAN </title>
      <link>https://www.wimdeblauwe.com/blog/2018/2018-09-26-switching-between-jdk-8-and-11-using-sdkman-/</link>
      <pubDate>Wed, 26 Sep 2018 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2018/2018-09-26-switching-between-jdk-8-and-11-using-sdkman-/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I have written about &lt;a href=&#34;https://wimdeblauwe.wordpress.com/2014/03/20/switching-easily-between-java-jdks-on-mac-os-x/&#34;&gt;switching JDK versions on your mac&lt;/a&gt; before. With JDK 11 now being out, it is time to give an updated version.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Spring Boot book published via Infoq</title>
      <link>https://www.wimdeblauwe.com/blog/2018/2018-09-10-spring-boot-book-published-via-infoq/</link>
      <pubDate>Mon, 10 Sep 2018 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2018/2018-09-10-spring-boot-book-published-via-infoq/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I am so happy because today my Spring Boot book is finally available! See &lt;a class=&#34;bare&#34; href=&#34;https://www.infoq.com/minibooks/spring-boot-building-api-backend&#34;&gt;https://www.infoq.com/minibooks/spring-boot-building-api-backend&lt;/a&gt; for all the details.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Tip on migration to Spring Boot 2 when using Flyway</title>
      <link>https://www.wimdeblauwe.com/blog/2018/2018-08-30-tip-on-migration-to-spring-boot-2-when-using-flyway/</link>
      <pubDate>Thu, 30 Aug 2018 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2018/2018-08-30-tip-on-migration-to-spring-boot-2-when-using-flyway/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Spring Boot 1.5.x uses Flyway 3 while Spring Boot 2.x uses Flyway 5. According to the &lt;a href=&#34;https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Migration-Guide#flyway&#34;&gt;official migration guide for Spring Boot 2&lt;/a&gt;, you need to do 2 releases to be able to migrate an application from Spring Boot 1 to Spring Boot 2 if you are using Flyway:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;quoteblock&#34;&gt;
&lt;blockquote&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;First upgrade your 1.5.x Spring Boot application to Flyway 4 (4.2.0 at the time of writing), see the instructions for Maven and Gradle.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Once your schema has been upgraded to Flyway 4, upgrade to Spring Boot 2 and run the migration again to port your application to Flyway 5.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Datadog integration with AWS Elastic Beanstalk for Spring Boot application</title>
      <link>https://www.wimdeblauwe.com/blog/2018/2018-07-06-datadog-integration-with-aws-elastic-beanstalk-for-spring-boot-application/</link>
      <pubDate>Fri, 06 Jul 2018 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2018/2018-07-06-datadog-integration-with-aws-elastic-beanstalk-for-spring-boot-application/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you have an application deployed on AWS Elastic Beanstalk and you want to add Datadog integration to it, then these instructions might help you out.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I started out with the instructions at &lt;a class=&#34;bare&#34; href=&#34;https://www.datadoghq.com/blog/deploy-datadog-aws-elastic-beanstalk/&#34;&gt;https://www.datadoghq.com/blog/deploy-datadog-aws-elastic-beanstalk/&lt;/a&gt; but they use the older version 5 of the datadog-agent and not the newer version 6.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In your source code, you normally have a &lt;code&gt;.ebextensions&lt;/code&gt; folder to configure the Elastic Beanstalk deployment. Inside that folder, create the following files (Create directories as needed):&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>PageImpl JSON serialization with Spring Boot 2</title>
      <link>https://www.wimdeblauwe.com/blog/2018/2018-06-10-pageimpl-json-serialization-with-spring-boot-2/</link>
      <pubDate>Sun, 10 Jun 2018 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2018/2018-06-10-pageimpl-json-serialization-with-spring-boot-2/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;During the migration of a &lt;a href=&#34;https://spring.io/projects/spring-boot&#34;&gt;Spring Boot&lt;/a&gt; application from 1.5.13 to 2.0.2, some of my &lt;a href=&#34;https://spring.io/projects/spring-restdocs&#34;&gt;Spring Rest Docs&lt;/a&gt; tests started failing.
The reason being that some of my &lt;code&gt;RestController&lt;/code&gt; s return a &lt;code&gt;org.springframework.data.domain.PageImpl&lt;/code&gt; object (from &lt;a href=&#34;https://spring.io/projects/spring-data&#34;&gt;Spring Data Commons&lt;/a&gt;).&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;nd&#34;&gt;@RestController&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;MyRestController&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;nd&#34;&gt;@GetMapping&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;PageImpl&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;SomeDtoObject&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;listAll&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;o&#34;&gt;...&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;With Spring Boot 1.5.13, this results in JSON like this:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;json&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;content&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
      &lt;/span&gt;&lt;span class=&#34;err&#34;&gt;...&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
      &lt;/span&gt;&lt;span class=&#34;err&#34;&gt;...&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;err&#34;&gt;....&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;totalElements&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;50&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;totalPages&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;last&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;kc&#34;&gt;false&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;size&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;20&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;number&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;numberOfElements&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;first&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;sort&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
      &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;direction&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;DESC&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
      &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;property&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;date&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
      &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;ignoreCase&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;kc&#34;&gt;false&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
      &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;nullHandling&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;NATIVE&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
      &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;ascending&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;kc&#34;&gt;false&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
      &lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;&amp;#34;descending&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
    &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
  &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Building an AsciidoctorJ extension to execute JavaScript</title>
      <link>https://www.wimdeblauwe.com/blog/2017/2017-10-08-building-an-asciidoctorj-extension-to-execute-javascript/</link>
      <pubDate>Sun, 08 Oct 2017 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2017/2017-10-08-building-an-asciidoctorj-extension-to-execute-javascript/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I love using &lt;a href=&#34;http://asciidoctor.org/&#34;&gt;Asciidoctor&lt;/a&gt; for writing documentation. I mainly got to know it through the excellent &lt;a href=&#34;https://projects.spring.io/spring-restdocs/&#34;&gt;Spring REST Docs&lt;/a&gt; project.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I wanted to build an extension (kind of a plug-in) for Asciidoctor. As I don’t know Ruby, writing an extension in Ruby was a bit too much. Luckily, there is AsciidoctorJ (The JVM version of Asciidoctor) which lets me write extensions in any JVM language. Here, we will be using plain Java, but &lt;a href=&#34;http://groovy-lang.org/&#34;&gt;Groovy&lt;/a&gt; for example would work equally well.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Spring Boot with JavaFX - Using Spring Profiles</title>
      <link>https://www.wimdeblauwe.com/blog/2017/2017-09-20-using-spring-boot-with-javafx---using-spring-profiles/</link>
      <pubDate>Wed, 20 Sep 2017 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2017/2017-09-20-using-spring-boot-with-javafx---using-spring-profiles/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the previous post, I showed ./blog/2017/09/18/using-spring-boot-with-javafx/[how to get started with Spring Boot and JavaFX].&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Continuing with the same example, we are going to create a new implementation of the &lt;code&gt;CountryService&lt;/code&gt; interface that talks to the &lt;a href=&#34;https://docs.openaq.org/&#34;&gt;Open AQ Platform API&lt;/a&gt; so the list of countries will be a lot bigger than our &lt;code&gt;HardcodedListCountryService&lt;/code&gt; we have now.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_using_retrofit&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#_using_retrofit&#34;&gt;&lt;/a&gt;Using Retrofit&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First, we add 2 dependencies in our &lt;code&gt;pom.xml&lt;/code&gt; to be able to use &lt;a href=&#34;http://square.github.io/retrofit/&#34;&gt;Retrofit&lt;/a&gt;:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;com.squareup.retrofit2&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;retrofit&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.3.0&lt;span class=&#34;nt&#34;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;com.squareup.retrofit2&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;converter-jackson&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.3.0&lt;span class=&#34;nt&#34;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Using Retrofit, we can easily get information from the API and transform it using Jackson into Java Objects.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First, we create an interface with a method for each call to the API we want to do:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;interface&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;OpenAqApi&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;nd&#34;&gt;@GET&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;countries&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
    &lt;span class=&#34;nc&#34;&gt;Call&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;OpenAqCountriesResponse&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;listCountries&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Next, we create objects that correspond to the returned JSON structures:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;nd&#34;&gt;@Getter&lt;/span&gt;
&lt;span class=&#34;nd&#34;&gt;@Setter&lt;/span&gt;
&lt;span class=&#34;nd&#34;&gt;@JsonIgnoreProperties&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ignoreUnknown&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;OpenAqCountriesResponse&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;List&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;OpenAqCountry&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;results&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;nd&#34;&gt;@Getter&lt;/span&gt;
&lt;span class=&#34;nd&#34;&gt;@Setter&lt;/span&gt;
&lt;span class=&#34;nd&#34;&gt;@JsonIgnoreProperties&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ignoreUnknown&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;OpenAqCountry&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;code&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Note: We use &lt;code&gt;@JsonIgnoreProperties(ignoreUnknown = true)&lt;/code&gt; to avoid having to add properties in Java for JSON fields we are not interested in anyway.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Finally, we create an &lt;code&gt;OpenAqServiceImpl&lt;/code&gt; class that sets up Retrofit for our API:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;nd&#34;&gt;@Component&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;OpenAqServiceImpl&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;implements&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;OpenAqService&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;final&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;OpenAqApi&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;api&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;OpenAqServiceImpl&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

        &lt;span class=&#34;nc&#34;&gt;HttpLoggingInterceptor&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;interceptor&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;HttpLoggingInterceptor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
        &lt;span class=&#34;n&#34;&gt;interceptor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;setLevel&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;HttpLoggingInterceptor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;Level&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;BODY&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
        &lt;span class=&#34;nc&#34;&gt;OkHttpClient&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;client&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;OkHttpClient&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;Builder&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt;
                &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;addInterceptor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;interceptor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;).&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;build&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;

        &lt;span class=&#34;nc&#34;&gt;Retrofit&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;retrofit&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Retrofit&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;Builder&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt;
                &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;baseUrl&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;https://api.openaq.org/v1/&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
                &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;addConverterFactory&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;JacksonConverterFactory&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;create&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;())&lt;/span&gt;
                &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;client&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;client&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
                &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;build&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;

        &lt;span class=&#34;n&#34;&gt;api&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;retrofit&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;create&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;OpenAqApi&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;class&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;nd&#34;&gt;@Override&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;OpenAqCountry&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;listCountries&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;try&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
            &lt;span class=&#34;nc&#34;&gt;OpenAqCountriesResponse&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;response&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;api&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;listCountries&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;().&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;execute&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;().&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;body&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;

            &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;response&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;!=&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;null&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
                &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;HashSet&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&amp;gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;response&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getResults&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;());&lt;/span&gt;
            &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;else&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
                &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Collections&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;emptySet&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
            &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

        &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;catch&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;IOException&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
            &lt;span class=&#34;k&#34;&gt;throw&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;RuntimeException&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;e&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
        &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Note: The current code also logs the HTTP requests and responses. For this to work, you need an additional dependency:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;com.squareup.okhttp3&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;logging-interceptor&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;3.8.0&lt;span class=&#34;nt&#34;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you don’t want/need this logging, you can remove the dependency.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;With all this plumbing in place, we can create our actual &lt;code&gt;CountryServiceImpl&lt;/code&gt; that is quite simple:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;nd&#34;&gt;@Component&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;CountryServiceImpl&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;implements&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;CountryService&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;final&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;OpenAqService&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;service&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;CountryServiceImpl&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;OpenAqService&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;service&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;service&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;service&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;nd&#34;&gt;@Override&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;Country&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;getAllCountries&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;service&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;listCountries&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;().&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;stream&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt;
                      &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;map&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;openAqCountry&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Country&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;openAqCountry&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getCode&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(),&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;openAqCountry&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getName&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()))&lt;/span&gt;
                      &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;collect&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;Collectors&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;toSet&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;());&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Spring Boot with JavaFX</title>
      <link>https://www.wimdeblauwe.com/blog/2017/2017-09-18-using-spring-boot-with-javafx/</link>
      <pubDate>Mon, 18 Sep 2017 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2017/2017-09-18-using-spring-boot-with-javafx/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In my previous post, I showed &lt;a href=&#34;https://wimdeblauwe.wordpress.com/2017/08/26/using-javafx-on-raspberry-pi-3-with-gluon/&#34;&gt;how to use JavaFX with the Raspberry Pi 3&lt;/a&gt;. I promised there to follow up with a post on using &lt;a href=&#34;https://projects.spring.io/spring-boot/&#34;&gt;Spring Boot&lt;/a&gt; with JavaFX, so here it goes.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Just as an example, I will be using the REST API service of the &lt;a href=&#34;https://docs.openaq.org&#34;&gt;Open AQ Platform API&lt;/a&gt; as it is simple and does not require any authentication to get started.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_initial_setup&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#_initial_setup&#34;&gt;&lt;/a&gt;Initial Setup&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We will be using Maven, so we start with a minimal &lt;code&gt;pom.xml&lt;/code&gt; that includes the latest Spring Boot version (1.5.7 at the time of writing):&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34;?&amp;gt;

&amp;lt;project xmlns=&amp;#34;http://maven.apache.org/POM/4.0.0&amp;#34; xmlns:xsi=&amp;#34;http://www.w3.org/2001/XMLSchema-instance&amp;#34;

xsi:schemaLocation=&amp;#34;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&amp;#34;&amp;gt;

&amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;

&amp;lt;groupId&amp;gt;org.deblauwe&amp;lt;/groupId&amp;gt;

&amp;lt;artifactId&amp;gt;airquality-fx&amp;lt;/artifactId&amp;gt;

&amp;lt;version&amp;gt;0.0.1-SNAPSHOT&amp;lt;/version&amp;gt;

&amp;lt;packaging&amp;gt;jar&amp;lt;/packaging&amp;gt;

&amp;lt;name&amp;gt;AirQualityFX&amp;lt;/name&amp;gt;

&amp;lt;description&amp;gt;JavaFX Client for the Open AQ Platform API&amp;lt;/description&amp;gt;

&amp;lt;parent&amp;gt;

&amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;

&amp;lt;artifactId&amp;gt;spring-boot-starter-parent&amp;lt;/artifactId&amp;gt;

&amp;lt;version&amp;gt;1.5.7.RELEASE&amp;lt;/version&amp;gt;

&amp;lt;relativePath/&amp;gt; &amp;lt;!-- lookup parent from repository --&amp;gt;

&amp;lt;/parent&amp;gt;

&amp;lt;properties&amp;gt;

&amp;lt;project.build.sourceEncoding&amp;gt;UTF-8&amp;lt;/project.build.sourceEncoding&amp;gt;

&amp;lt;project.reporting.outputEncoding&amp;gt;UTF-8&amp;lt;/project.reporting.outputEncoding&amp;gt;

&amp;lt;java.version&amp;gt;1.8&amp;lt;/java.version&amp;gt;

&amp;lt;/properties&amp;gt;

&amp;lt;dependencies&amp;gt;

&amp;lt;dependency&amp;gt;

&amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;

&amp;lt;artifactId&amp;gt;spring-boot-starter&amp;lt;/artifactId&amp;gt;

&amp;lt;/dependency&amp;gt;

&amp;lt;/dependencies&amp;gt;

&amp;lt;build&amp;gt;

&amp;lt;plugins&amp;gt;

&amp;lt;plugin&amp;gt;

&amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;

&amp;lt;artifactId&amp;gt;spring-boot-maven-plugin&amp;lt;/artifactId&amp;gt;

&amp;lt;/plugin&amp;gt;

&amp;lt;/plugins&amp;gt;

&amp;lt;/build&amp;gt;

&amp;lt;/project&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Our minimal JavaFX application will have 1 FXML file that defines the user interface and 1 Java file to get the application running. This is &lt;code&gt;main.fxml&lt;/code&gt;:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34;?&amp;gt;

&amp;lt;?import javafx.scene.control.Label?&amp;gt;

&amp;lt;?import javafx.scene.layout.AnchorPane?&amp;gt;

&amp;lt;AnchorPane xmlns=&amp;#34;http://javafx.com/javafx&amp;#34;&amp;gt;

&amp;lt;Label text=&amp;#34;Main Content&amp;#34;/&amp;gt;

&amp;lt;/AnchorPane&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;And this is AirQualityFxApplication.java:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;package org.deblauwe.airqualityfx;

import javafx.application.Application;

import javafx.fxml.FXMLLoader;

import javafx.geometry.Rectangle2D;

import javafx.scene.Parent;

import javafx.scene.Scene;

import javafx.stage.Screen;

import javafx.stage.Stage;

import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.boot.builder.SpringApplicationBuilder;

import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication

public class AirQualityFxApplication extends Application {

private ConfigurableApplicationContext context;

private Parent rootNode;

@Override

public void init() throws Exception {

SpringApplicationBuilder builder = new SpringApplicationBuilder(AirQualityFxApplication.class);

context = builder.run(getParameters().getRaw().toArray(new String[0]));

FXMLLoader loader = new FXMLLoader(getClass().getResource(&amp;#34;main.fxml&amp;#34;));

loader.setControllerFactory(context::getBean);

rootNode = loader.load();

}

@Override

public void start(Stage primaryStage) throws Exception {

Rectangle2D visualBounds = Screen.getPrimary().getVisualBounds();

double width = visualBounds.getWidth();

double height = visualBounds.getHeight();

primaryStage.setScene(new Scene(rootNode, width, height));

primaryStage.centerOnScreen();

primaryStage.show();

}

@Override

public void stop() throws Exception {

context.close();

}

}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Some things to note:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The class is annotated with &lt;code&gt;@SpringBootApplication&lt;/code&gt; to enable Spring Boot&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;We create the Spring ApplicationContext in the &lt;code&gt;init()&lt;/code&gt; method&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;We instruct the &lt;code&gt;FXMLLoader&lt;/code&gt; to use the &lt;code&gt;context::getBean&lt;/code&gt; method to load controllers. This will allow us to have Spring create the controllers using component scanning and inject them into our FXML files.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Starting the application from IntelliJ IDEA shows the UI:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;https://www.wimdeblauwe.com/images//2017/09/screen-shot-2017-09-18-at-20-51-59.png&#34; alt=&#34;screen shot 2017 09 18 at 20 51 59&#34;/&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using JavaFX on Raspberry Pi 3 with Gluon</title>
      <link>https://www.wimdeblauwe.com/blog/2017/2017-08-26-using-javafx-on-raspberry-pi-3-with-gluon/</link>
      <pubDate>Sat, 26 Aug 2017 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2017/2017-08-26-using-javafx-on-raspberry-pi-3-with-gluon/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In this post, I am going to detail the steps to get a simple JavaFX application running on the Raspberry Pi 3 using Gluon.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_hardware&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#_hardware&#34;&gt;&lt;/a&gt;Hardware&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;For this setup, I used the Raspberry Pi 3 with the official 7&amp;#34; touchscreen connected.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;span class=&#34;image&#34;&gt;&lt;img src=&#34;https://www.wimdeblauwe.com/images/2017/08/img_1296.jpg&#34; alt=&#34;Raspberry Pi with touchscreen&#34; width=&#34;1280&#34; height=&#34;960&#34;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_raspbian_installation&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#_raspbian_installation&#34;&gt;&lt;/a&gt;Raspbian Installation&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First off, download Raspbian from &lt;a class=&#34;bare&#34; href=&#34;https://www.raspberrypi.org/downloads/raspbian/&#34;&gt;https://www.raspberrypi.org/downloads/raspbian/&lt;/a&gt;. I chose the &amp;#34;RASPBIAN STRETCH WITH DESKTOP&amp;#34; version and burned it on an SD-card using &lt;a href=&#34;https://etcher.io/&#34;&gt;Etcher&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Insert the SD-card in the Raspberry Pi and let it boot. The screen should look like this when done:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;span class=&#34;image&#34;&gt;&lt;img src=&#34;https://www.wimdeblauwe.com/images/2017/08/img_2384.jpg&#34; alt=&#34;Raspbian start screen&#34; width=&#34;1280&#34; height=&#34;960&#34;/&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Find out the IP address of the Raspberry Pi by running &lt;code&gt;ifconfig&lt;/code&gt; on the Pi itself or looking at the DHCP clients list of your router.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Enable SSH to be able to easily copy files to the Raspberry Pi. See &lt;a href=&#34;https://www.raspberrypi.org/documentation/remote-access/ssh/&#34;&gt;the official instructions&lt;/a&gt; on how to do that.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Enable preview of Spring REST Docs snippets in IntelliJ IDEA</title>
      <link>https://www.wimdeblauwe.com/blog/2017/2017-07-24-enable-preview-of-spring-rest-docs-snippets-in-intellij-idea/</link>
      <pubDate>Mon, 24 Jul 2017 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2017/2017-07-24-enable-preview-of-spring-rest-docs-snippets-in-intellij-idea/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you use &lt;a href=&#34;https://projects.spring.io/spring-restdocs/&#34;&gt;Spring REST Docs&lt;/a&gt;, you will be using the Asciidoctor &lt;code&gt;include&lt;/code&gt; directive a lot to include the request and responses that are generated from the unit tests. Drawback is that the &lt;a href=&#34;https://plugins.jetbrains.com/plugin/7391-asciidoc&#34;&gt;Asciidoctor plugin for IntelliJ IDEA&lt;/a&gt; will not render them by default and looks like this:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;https://www.wimdeblauwe.com/images/2017/07/screen-shot-2017-07-24-at-14-12-36.png&#34; alt=&#34;screen shot 2017 07 24 at 14 12 36&#34;/&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The reason is simple, the &lt;code&gt;snippets&lt;/code&gt; attribute is only available when running the Maven or Gradle task to build the final documentation.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using ServletUriComponentsBuilder with Nginx</title>
      <link>https://www.wimdeblauwe.com/blog/2017/2017-03-13-using-servleturicomponentsbuilder-with-nginx/</link>
      <pubDate>Mon, 13 Mar 2017 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2017/2017-03-13-using-servleturicomponentsbuilder-with-nginx/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Spring’s &lt;code&gt;ServletUriComponentsBuilder.fromCurrentRequest()&lt;/code&gt; can be really convinient to build an URL from the current request. However, when using Nginx, things might work so well.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The solution is simple, just add these headers to your Nginx configuration file:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;literalblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre&gt;proxy_set_header        X-Forwarded-Host   $host:443;
proxy_set_header        X-Forwarded-Server $host;
proxy_set_header        X-Forwarded-Port   443;
proxy_set_header        X-Forwarded-Proto  https;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;em&gt;UPDATE 2020-06-08&lt;/em&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;You need to enable support for this in Spring Boot by setting the following property (Since Spring Boot 2.2):&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;server.forward-headers-strategy=native&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>AssertJ custom assertion for ConstraintValidator tests</title>
      <link>https://www.wimdeblauwe.com/blog/2017/2017-01-22-assertj-custom-assertion-for-constraintvalidator-tests/</link>
      <pubDate>Sun, 22 Jan 2017 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2017/2017-01-22-assertj-custom-assertion-for-constraintvalidator-tests/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;As a follow-up to my last post on a &lt;a href=&#34;https://www.wimdeblauwe.com/blog/2017/2017-01-21-custom-validator-to-check-if-a-string-contains-xml/&#34;&gt;custom validator to check if a String contains XML&lt;/a&gt;, I like to elaborate on how I made the unit test so readable.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;To repeat, here is part of the unit test again with the assertions highlighted:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;nd&#34;&gt;@Test&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;givenNoXml_notValid&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
    &lt;span class=&#34;nc&#34;&gt;ValidatorFactory&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;factory&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Validation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;buildDefaultValidatorFactory&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
    &lt;span class=&#34;nc&#34;&gt;Validator&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;validator&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;factory&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getValidator&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;

    &lt;span class=&#34;nc&#34;&gt;TestObject&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;testObject&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;TestObject&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;This is no XML string&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
    &lt;span class=&#34;nc&#34;&gt;Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;ConstraintViolation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;TestObject&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;violationSet&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;validator&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;validate&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;testObject&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;

    &lt;span class=&#34;n&#34;&gt;assertThat&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;violationSet&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;).&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;hasViolationOnPath&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;xml&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

&lt;span class=&#34;nd&#34;&gt;@Test&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;givenXml_valid&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;nc&#34;&gt;ValidatorFactory&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;factory&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Validation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;buildDefaultValidatorFactory&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
    &lt;span class=&#34;nc&#34;&gt;Validator&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;validator&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;factory&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getValidator&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;

    &lt;span class=&#34;nc&#34;&gt;TestObject&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;testObject&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;TestObject&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;&amp;lt;Node&amp;gt;test&amp;lt;/Node&amp;gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
    &lt;span class=&#34;nc&#34;&gt;Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;ConstraintViolation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;TestObject&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;violationSet&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;validator&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;validate&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;testObject&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;

    &lt;span class=&#34;n&#34;&gt;assertThat&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;violationSet&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;).&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;hasNoViolations&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I love using &lt;a href=&#34;http://joel-costigliola.github.io/assertj/&#34;&gt;AssertJ&lt;/a&gt; for assertions in my unit tests, because:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;They are very readable&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;They are code completion friendly&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You don’t have to remember if the expected value goes first or last&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Custom Validator to check if a String contains XML</title>
      <link>https://www.wimdeblauwe.com/blog/2017/2017-01-21-custom-validator-to-check-if-a-string-contains-xml/</link>
      <pubDate>Sat, 21 Jan 2017 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2017/2017-01-21-custom-validator-to-check-if-a-string-contains-xml/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show you how to create a custom validator to check if a String contains valid XML using the &lt;a href=&#34;http://beanvalidation.org/&#34;&gt;Java Validation API&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Suppose you have a highly technical application that requires the user to enter some XML in a web form. You want to validate this on the client side, but also on the server side, since you should never trust your client.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;For the purpose of the example, suppose you have this entity:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Angular datatables with server side pagination using Spring Data</title>
      <link>https://www.wimdeblauwe.com/blog/2016/2016-05-05-angular-datatables-with-server-side-pagination-using-spring-data/</link>
      <pubDate>Thu, 05 May 2016 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2016/2016-05-05-angular-datatables-with-server-side-pagination-using-spring-data/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We are using &lt;a href=&#34;http://l-lin.github.io/angular-datatables&#34;&gt;angular-datatables&lt;/a&gt; in a project. So far, we just returned all entities from the server’s REST controller (Using &lt;a href=&#34;http://projects.spring.io/spring-boot/&#34;&gt;Spring Boot&lt;/a&gt; and &lt;a href=&#34;http://projects.spring.io/spring-data/&#34;&gt;Spring Data&lt;/a&gt; on the server side). I wanted to see how I could implement server side pagination to avoid returning all records at once.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I was lucky to find &lt;a href=&#34;https://github.com/darrachequesne/spring-data-jpa-datatables&#34;&gt;spring-data-jpa-datatables&lt;/a&gt; which makes it very easy to do.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First, add the dependency in your pom.xml:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;com.github.darrachequesne&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;spring-data-jpa-datatables&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.1&lt;span class=&#34;nt&#34;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In my UserController, I have currently this:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>AssertJ custom assertion for testing ConstraintValidator implementations</title>
      <link>https://www.wimdeblauwe.com/blog/2016/2016-04-01-assertj-custom-assertion-for-testing-constraintvalidator-implementations/</link>
      <pubDate>Fri, 01 Apr 2016 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2016/2016-04-01-assertj-custom-assertion-for-testing-constraintvalidator-implementations/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you want to unit test a &lt;a href=&#34;https://docs.oracle.com/javaee/7/api/javax/validation/ConstraintValidator.html&#34;&gt;ConstraintValidator&lt;/a&gt; with &lt;a href=&#34;http://joel-costigliola.github.io/assertj&#34;&gt;AssertJ&lt;/a&gt;, then you can use this custom validator to make the tests more readable:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;org.assertj.core.api.AbstractAssert&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;javax.validation.ConstraintViolation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;java.util.Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;java.util.stream.Collectors&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ConstraintViolationSetAssert&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;extends&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;AbstractAssert&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;ConstraintViolationSetAssert&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;?&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;extends&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ConstraintViolation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;ConstraintViolationSetAssert&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;?&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;extends&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ConstraintViolation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;actual&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;kd&#34;&gt;super&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;actual&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ConstraintViolationSetAssert&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;class&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;static&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ConstraintViolationSetAssert&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;assertThat&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;?&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;extends&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ConstraintViolation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;actual&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;ConstraintViolationSetAssert&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;actual&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ConstraintViolationSetAssert&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;hasViolationOnPath&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;path&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;n&#34;&gt;isNotNull&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;

        &lt;span class=&#34;c1&#34;&gt;// check condition&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(!&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;containsViolationWithPath&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;actual&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;path&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;))&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
            &lt;span class=&#34;n&#34;&gt;failWithMessage&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;There was no violation with path &amp;lt;%s&amp;gt;. Violation paths: &amp;lt;%s&amp;gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;path&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;actual&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;stream&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt;
                                                                                                        &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;map&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;violation&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;violation&lt;/span&gt;
                                                                                                                &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getPropertyPath&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt;
                                                                                                                &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;toString&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;())&lt;/span&gt;
                                                                                                        &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;collect&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;
                                                                                                                &lt;span class=&#34;nc&#34;&gt;Collectors&lt;/span&gt;
                                                                                                                        &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;toList&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()));&lt;/span&gt;
        &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

        &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;boolean&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;containsViolationWithPath&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;?&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;extends&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ConstraintViolation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;violations&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;path&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;kt&#34;&gt;boolean&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;result&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;false&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

        &lt;span class=&#34;k&#34;&gt;for&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;ConstraintViolation&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;violation&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;violations&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
            &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;violation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getPropertyPath&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;().&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;toString&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;().&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;equals&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;path&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;))&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
                &lt;span class=&#34;n&#34;&gt;result&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
                &lt;span class=&#34;k&#34;&gt;break&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
            &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
        &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;result&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;An example unit test that uses this:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;nd&#34;&gt;@Test&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;givenInvalidUsername_violationConstraint&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
    &lt;span class=&#34;nc&#34;&gt;CreateUserParameters&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;p&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;CreateUserParameters&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
    &lt;span class=&#34;n&#34;&gt;p&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;setUsername&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;x&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;

    &lt;span class=&#34;nc&#34;&gt;ValidatorFactory&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;factory&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Validation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;buildDefaultValidatorFactory&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
    &lt;span class=&#34;nc&#34;&gt;Validator&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;validator&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;factory&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getValidator&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;

    &lt;span class=&#34;nc&#34;&gt;Set&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;ConstraintViolation&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;CreateUserParameters&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;violationSet&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;validator&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;validate&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;parameters&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;

    &lt;span class=&#34;c1&#34;&gt;// static import for ConstraintViolationSetAssert&lt;/span&gt;
    &lt;span class=&#34;n&#34;&gt;assertThat&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;violationSet&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;).&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;hasViolationOnPath&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;username&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;See &lt;a class=&#34;bare&#34; href=&#34;http://joel-costigliola.github.io/assertj/assertj-core-custom-assertions.html&#34;&gt;http://joel-costigliola.github.io/assertj/assertj-core-custom-assertions.html&lt;/a&gt; for the documentation if you want to create your own custom assertions using AssertJ. There is even a Maven plugin that allows to generate custom assertions automatically: &lt;a class=&#34;bare&#34; href=&#34;http://joel-costigliola.github.io/assertj/assertj-assertions-generator-maven-plugin.html&#34;&gt;http://joel-costigliola.github.io/assertj/assertj-assertions-generator-maven-plugin.html&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Read only EntryProcessors with Hazelcast</title>
      <link>https://www.wimdeblauwe.com/blog/2015/2015-09-30-read-only-entryprocessors-with-hazelcast/</link>
      <pubDate>Wed, 30 Sep 2015 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2015/2015-09-30-read-only-entryprocessors-with-hazelcast/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This post is a follow-up on my post &lt;a href=&#34;https://wimdeblauwe.wordpress.com/2015/09/29/entryprocessors-and-entrybackupprocessors-with-hazelcast/&#34;&gt;EntryProcessors and EntryBackupProcessors with Hazelcast&lt;/a&gt;. In the comments, &lt;a href=&#34;https://twitter.com/peterveentjer&#34;&gt;Peter Veentjer&lt;/a&gt; from Hazelcast gave me the idea to use an EntryProcessor to read part of the data. I will show you below how to best do this.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We start with a cache that has 10 User objects in it and we want to retrieve the user names of all users in the cache.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_without_an_entry_processor&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#_without_an_entry_processor&#34;&gt;&lt;/a&gt;Without an entry processor&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We can get the list of names without using an entry processor. For example:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ReadOnlyEntryProcessorTest0&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;static&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;main&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;[]&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;args&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;throws&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;InterruptedException&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

        &lt;span class=&#34;nc&#34;&gt;Config&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;config&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Config&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
        &lt;span class=&#34;n&#34;&gt;config&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;setProperty&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;hazelcast.initial.min.cluster.size&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34;2&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;

        &lt;span class=&#34;nc&#34;&gt;HazelcastInstance&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;hazelcastInstance&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Hazelcast&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;newHazelcastInstance&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;config&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;

        &lt;span class=&#34;c1&#34;&gt;// Take a lock so only 1 of the 2 nodes will execute the entry processor&lt;/span&gt;
        &lt;span class=&#34;nc&#34;&gt;ILock&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;doItLock&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;hazelcastInstance&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getLock&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;doItLock&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;

        &lt;span class=&#34;n&#34;&gt;doItLock&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;lock&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;

        &lt;span class=&#34;nc&#34;&gt;IMap&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;Long&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;User&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;testMap&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;try&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
            &lt;span class=&#34;n&#34;&gt;testMap&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;hazelcastInstance&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getMap&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;testMap&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
            &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(!&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;testMap&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;containsKey&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;1L&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;))&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
                &lt;span class=&#34;nc&#34;&gt;IntStream&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;rangeClosed&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;10&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
                         &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;mapToObj&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;ReadOnlyEntryProcessorTest0:&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;createUser&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
                         &lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;forEach&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;user&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;testMap&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;put&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;user&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getId&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(),&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;user&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;));&lt;/span&gt;

                &lt;span class=&#34;n&#34;&gt;testMap&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;values&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;().&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;stream&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;().&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;map&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;User:&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;getName&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;).&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;forEach&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;name&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;System&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;out&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;println&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;name = &amp;#34;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;+&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;));&lt;/span&gt;
            &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
        &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;finally&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
            &lt;span class=&#34;n&#34;&gt;doItLock&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;unlock&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
        &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;static&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;User&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;createUser&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;kt&#34;&gt;int&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;i&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;nc&#34;&gt;User&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;user&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;User&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;
        &lt;span class=&#34;n&#34;&gt;user&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;setId&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;i&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
        &lt;span class=&#34;n&#34;&gt;user&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;setName&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;Wim&amp;#34;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;+&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;i&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;user&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;So the example first adds 10 User objects in the cache and then retrieves them again, getting the &amp;#34;name&amp;#34; of each User object and printing this. This means Hazelcast has to fetch (and serialize) the full User object from the other nodes running in the cluster.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Since we are only interested in a small part of the object, we can use an EntryProcessor to retrieve just that.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>EntryProcessors and EntryBackupProcessors with Hazelcast</title>
      <link>https://www.wimdeblauwe.com/blog/2015/2015-09-29-entryprocessors-and-entrybackupprocessors-with-hazelcast/</link>
      <pubDate>Tue, 29 Sep 2015 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2015/2015-09-29-entryprocessors-and-entrybackupprocessors-with-hazelcast/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;http://hazelcast.org/&#34;&gt;Hazelcast&lt;/a&gt; has the concept of EntryProcessors (like &lt;a href=&#34;http://www.oracle.com/technetwork/middleware/coherence/overview/index.html&#34;&gt;Oracle Coherence&lt;/a&gt;). EntryProcessors allow to update cache entries without having to pull over the actual values. You move the processing to where the value lives and update the cache there.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Furthermore, Hazelcast has the notion of &lt;a href=&#34;http://docs.hazelcast.org/docs/3.5/javadoc/com/hazelcast/map/EntryBackupProcessor.html&#34;&gt;EntryBackupProcessor&lt;/a&gt; (which Coherence does not have).&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;To explain the usage of this, we will use a simple User class:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;User&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;implements&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Serializable&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;long&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;id&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;DateTime&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;lastLoginTime&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

    &lt;span class=&#34;c1&#34;&gt;// getters and setters omitted&lt;/span&gt;

&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We will set the &amp;#39;lastLoginTime&amp;#39; on the user by means of an EntryProcessor.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Introduction to using JavaFX with afterburner.fx</title>
      <link>https://www.wimdeblauwe.com/blog/2015/2015-03-24-introduction-to-using-javafx-with-afterburner.fx/</link>
      <pubDate>Tue, 24 Mar 2015 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2015/2015-03-24-introduction-to-using-javafx-with-afterburner.fx/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I wanted to try out &lt;a href=&#34;http://afterburner.adam-bien.com/&#34;&gt;afterburner.fx&lt;/a&gt;, a JavaFX framework which describes itself as:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;quoteblock&#34;&gt;
&lt;blockquote&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;a minimalistic (3 classes) JavaFX MVP framework based on Convention over Configuration and Dependency Injection.&lt;/p&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;For this purpose I created a simple note taking application which looks like this when finished:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;https://www.wimdeblauwe.com/images/2015/03/screen-shot-2015-03-24-at-19-38-24.png&#34; alt=&#34;screen shot 2015 03 24 at 19 38 24&#34;/&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First off, the domain class that represents a Note:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;Note&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;long&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;id&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;title&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;content&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

    &lt;span class=&#34;c1&#34;&gt;// Getter and setters ommitted&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I also made a &lt;code&gt;NoteService&lt;/code&gt; to retrieve the current notes and update an existing note:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Font Awesome in JavaFX with fontawesomefx</title>
      <link>https://www.wimdeblauwe.com/blog/2015/2015-03-13-using-font-awesome-in-javafx-with-fontawesomefx/</link>
      <pubDate>Fri, 13 Mar 2015 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2015/2015-03-13-using-font-awesome-in-javafx-with-fontawesomefx/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Icons are a great way to spice up any UI. You can easily use the &lt;a href=&#34;http://fortawesome.github.io/Font-Awesome/&#34;&gt;Font Awesome&lt;/a&gt; icons in &lt;a href=&#34;http://www.oracle.com/technetwork/java/javafx/overview/index.html&#34;&gt;JavaFX&lt;/a&gt;, by using the &lt;a href=&#34;https://bitbucket.org/Jerady/fontawesomefx&#34;&gt;fontawesomefx&lt;/a&gt; library.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I will show a small example on how to use the icons in JavaFX code and how to apply some styling.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First import the library. I am using Maven, so I just add this dependency:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;de.jensd&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;fontawesomefx&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;8.2&lt;span class=&#34;nt&#34;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We will start with a simple app that uses a BorderPane to put some content at the center and have a kind of header at the top:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Spring Boot application with  exploded  directory structure</title>
      <link>https://www.wimdeblauwe.com/blog/2014/2014-11-04-spring-boot-application-with--exploded--directory-structure/</link>
      <pubDate>Tue, 04 Nov 2014 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2014/2014-11-04-spring-boot-application-with--exploded--directory-structure/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;http://projects.spring.io/spring-boot/&#34;&gt;Spring Boot&lt;/a&gt; is really amazing for getting started quickly with a new Spring application. By default, your application is contained in a single jar when packaging it. This has some advantages, but what if you want a &amp;#34;classic&amp;#34; layout with a &lt;code&gt;config&lt;/code&gt; folder (for your &lt;code&gt;application.properties&lt;/code&gt; or &lt;code&gt;logback.xml&lt;/code&gt; files) and a &lt;code&gt;lib&lt;/code&gt; folder?&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_getting_started&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#_getting_started&#34;&gt;&lt;/a&gt;Getting Started&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show you a way of doing this using &lt;a href=&#34;http://maven.apache.org/&#34;&gt;Maven&lt;/a&gt; and the &lt;a href=&#34;http://maven.apache.org/plugins/maven-assembly-plugin/&#34;&gt;Maven Assembly Plugin&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First, we create a simple project using the &lt;a href=&#34;http://start.spring.io/&#34;&gt;Spring Initializr&lt;/a&gt;. I opted for Java 8 and selected the &amp;#34;Web&amp;#34; dependency. The current Spring Boot version is 1.1.8.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This gave me a zip file with the following structure:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;pom.xml
src/main/java/.../Application.java
src/main/resources/application.properties
src/test/java/...&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;For some fun, I added a simple rest controller:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;kn&#34;&gt;package&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;org.deblauwe.example.boot.exploded&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;org.springframework.beans.factory.annotation.Value&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;org.springframework.web.bind.annotation.RequestMapping&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;org.springframework.web.bind.annotation.RestController&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

&lt;span class=&#34;nd&#34;&gt;@RestController&lt;/span&gt;
&lt;span class=&#34;nd&#34;&gt;@RequestMapping&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;/test&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;TestController&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;nd&#34;&gt;@Value&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;${hello.value:World}&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;helloValue&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

    &lt;span class=&#34;nd&#34;&gt;@RequestMapping&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;/&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;sayHello&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34;Hello &amp;#34;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;+&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;helloValue&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Running this application and pointing to &lt;a class=&#34;bare&#34; href=&#34;http://localhost:8080/test/&#34;&gt;http://localhost:8080/test/&lt;/a&gt; returns &amp;#34;Hello World&amp;#34; in the browser.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We can now inject a different value into &amp;#39;helloValue&amp;#39; by adding the following line to &lt;code&gt;application.properties&lt;/code&gt;:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;hello.value=Maven&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you now refresh the browser, it shows: &lt;code&gt;Hello Maven&lt;/code&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Opening multiple SSH sessions with iTerm automatically</title>
      <link>https://www.wimdeblauwe.com/blog/2014/2014-07-16-opening-multiple-ssh-sessions-with-iterm-automatically/</link>
      <pubDate>Wed, 16 Jul 2014 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2014/2014-07-16-opening-multiple-ssh-sessions-with-iterm-automatically/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;http://www.iterm2.com/&#34;&gt;iTerm&lt;/a&gt; is great, but if you are working with a cluster of servers, it quickly becomes tedious to open an SSH session to each server and to configure splits so you can talk to all servers at once.
Based upon the scripts &lt;a href=&#34;http://hints.macworld.com/article.php?story=20070711123202297&#34;&gt;here&lt;/a&gt; (but does not use splits) and &lt;a href=&#34;https://github.com/MarkReddy/iTerm2-Multi-SSH&#34;&gt;here&lt;/a&gt; (but does not work with 7 servers which I needed in my case), I came up with the following AppleScript that works for me.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using Cassandra unit with TestNG</title>
      <link>https://www.wimdeblauwe.com/blog/2014/2014-06-11-using-cassandra-unit-with-testng/</link>
      <pubDate>Wed, 11 Jun 2014 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2014/2014-06-11-using-cassandra-unit-with-testng/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I just started some tests with &lt;a href=&#34;http://cassandra.apache.org/&#34;&gt;Cassandra&lt;/a&gt; and &lt;a href=&#34;http://projects.spring.io/spring-data-cassandra/&#34;&gt;Spring Data Cassandra&lt;/a&gt;. I want to write some unit tests for this using TestNG. The &lt;a href=&#34;https://github.com/jsevellec/cassandra-unit&#34;&gt;Cassandra Unit&lt;/a&gt; project uses &lt;a href=&#34;http://junit.org/&#34;&gt;JUnit&lt;/a&gt; by default, but can be used with &lt;a href=&#34;http://testng.org/doc/index.html&#34;&gt;TestNG&lt;/a&gt; as well with some tweaking.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;To start, add the following dependencies in your Maven pom:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;xml&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.springframework.data&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;spring-data-cassandra&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;1.0.0.RELEASE&lt;span class=&#34;nt&#34;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;

&lt;span class=&#34;nt&#34;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.cassandra&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;cassandra-all&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.0.5&lt;span class=&#34;nt&#34;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;

&lt;span class=&#34;nt&#34;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.cassandraunit&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;cassandra-unit&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.0.2.1&lt;span class=&#34;nt&#34;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;scope&amp;gt;&lt;/span&gt;test&lt;span class=&#34;nt&#34;&gt;&amp;lt;/scope&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;exclusions&amp;gt;&lt;/span&gt;
        &lt;span class=&#34;nt&#34;&gt;&amp;lt;exclusion&amp;gt;&lt;/span&gt;
            &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;cassandra-all&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
            &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.cassandra&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
        &lt;span class=&#34;nt&#34;&gt;&amp;lt;/exclusion&amp;gt;&lt;/span&gt;
        &lt;span class=&#34;nt&#34;&gt;&amp;lt;exclusion&amp;gt;&lt;/span&gt;
            &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;com.datastax.cassandra&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
            &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;cassandra-driver-core&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
        &lt;span class=&#34;nt&#34;&gt;&amp;lt;/exclusion&amp;gt;&lt;/span&gt;
        &lt;span class=&#34;nt&#34;&gt;&amp;lt;exclusion&amp;gt;&lt;/span&gt;
            &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.slf4j&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
            &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;slf4j-log4j12&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
        &lt;span class=&#34;nt&#34;&gt;&amp;lt;/exclusion&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;/exclusions&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.cassandraunit&lt;span class=&#34;nt&#34;&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;cassandra-unit-spring&lt;span class=&#34;nt&#34;&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.0.2.1&lt;span class=&#34;nt&#34;&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
    &lt;span class=&#34;nt&#34;&gt;&amp;lt;scope&amp;gt;&lt;/span&gt;test&lt;span class=&#34;nt&#34;&gt;&amp;lt;/scope&amp;gt;&lt;/span&gt;
&lt;span class=&#34;nt&#34;&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Now we can setup Spring context loading with TestNG (using Java Config):&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;nd&#34;&gt;@Test&lt;/span&gt;
&lt;span class=&#34;nd&#34;&gt;@ContextConfiguration&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;CassandraMessageRepositoryTest&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;extends&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;AbstractTestNGSpringContextTests&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;testStoreMessage&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;nd&#34;&gt;@Configuration&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;static&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;ContextConfiguration&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;c1&#34;&gt;// Add your @Bean&amp;#39;s here&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;After this,we need to start an embedded Cassandra &lt;em&gt;before&lt;/em&gt; the Spring context loads, since the spring context needs to connect to the Cassandra server.
For this, I have &lt;a href=&#34;http://stackoverflow.com/questions/4589052/how-to-make-beforeclass-run-prior-spring-testcontext-loads-up&#34;&gt;found no better way&lt;/a&gt; than overriding the @TestExecutionListeners.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Release JIRA Database Values plugin 3.3</title>
      <link>https://www.wimdeblauwe.com/blog/2014/2014-05-24-release-jira-database-values-plugin-3.3/</link>
      <pubDate>Sat, 24 May 2014 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2014/2014-05-24-release-jira-database-values-plugin-3.3/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Just a quick note that I released version 3.3 of my &lt;a href=&#34;https://marketplace.atlassian.com/plugins/org.deblauwe.jira.plugin.database-values-plugin&#34;&gt;JIRA database values plugin&lt;/a&gt;.
It has only 1 bugfix: &lt;a class=&#34;bare&#34; href=&#34;https://bitbucket.org/wimdeblauwe/jdvp/issue/14/ajax-style-field-dont-run-in-popup-screen&#34;&gt;https://bitbucket.org/wimdeblauwe/jdvp/issue/14/ajax-style-field-dont-run-in-popup-screen&lt;/a&gt; but an important one given the 5 votes it got.
Note that I cannot take any credit for the fix, user Mirek Hankus provide it. Thanks for it!&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Switching easily between Java JDKs on Mac OS X</title>
      <link>https://www.wimdeblauwe.com/blog/2014/2014-03-20-switching-easily-between-java-jdks-on-mac-os-x/</link>
      <pubDate>Thu, 20 Mar 2014 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2014/2014-03-20-switching-easily-between-java-jdks-on-mac-os-x/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I just came upon a neat little trick to easily switch what JDK you are using on the command line on Mac OS X (10.9.2 is the version I am using), courtesy of &lt;a href=&#34;http://apple.stackexchange.com/a/93132/21912&#34;&gt;this AskDifferent answer&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First, add the following aliases in ~/.profile file:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;alias setJdk6=&amp;#39;export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)&amp;#39;
alias setJdk7=&amp;#39;export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)&amp;#39;
alias setJdk8=&amp;#39;export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)&amp;#39;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Open a new terminal window or use source ~/.profile to load the aliases.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Synchronizing LiquidPlanner with Exchange calendars</title>
      <link>https://www.wimdeblauwe.com/blog/2014/2014-02-07-synchronizing-liquidplanner-with-exchange-calendars/</link>
      <pubDate>Fri, 07 Feb 2014 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2014/2014-02-07-synchronizing-liquidplanner-with-exchange-calendars/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Quite some time ago I wrote &lt;a href=&#34;http://groovy.codehaus.org/&#34;&gt;Groovy&lt;/a&gt; code to synchronize &lt;a href=&#34;https://www.atlassian.com/software/jira&#34;&gt;Atlassian JIRA&lt;/a&gt; with &lt;a href=&#34;http://www.liquidplanner.com/&#34;&gt;LiquidPlanner&lt;/a&gt;. You can find my 2 part blog post on that &lt;a href=&#34;http://wimdeblauwe.wordpress.com/2011/10/13/synchronisation-of-atlassian-jira-with-liquidplanner/&#34;&gt;here&lt;/a&gt; and &lt;a href=&#34;http://wimdeblauwe.wordpress.com/2011/10/13/synchronisation-of-atlassian-jira-with-liquidplanner-part-2/&#34;&gt;here&lt;/a&gt;. In case you don’t know LiquidPlanner, be sure to check it out, it is the best project management/scheduling tool I know.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;One thing that was missing is the integration of the holidays into LiquidPlanner. Since the holidays are already in everybody’s Outlook Calendar, I could get the needed information from there.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Creating a REST web application in 4 classes</title>
      <link>https://www.wimdeblauwe.com/blog/2013/2013-12-16-creating-a-rest-web-application-in-4-classes/</link>
      <pubDate>Mon, 16 Dec 2013 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2013/2013-12-16-creating-a-rest-web-application-in-4-classes/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;After visiting &lt;a href=&#34;http://skillsmatter.com/event/java-jee/spring-exchange-1724&#34;&gt;Spring Exchange&lt;/a&gt; in London, I wanted to try &lt;a href=&#34;http://projects.spring.io/spring-boot/&#34;&gt;Spring Boot&lt;/a&gt; and &lt;a href=&#34;http://projects.spring.io/spring-data/&#34;&gt;Spring Data&lt;/a&gt;. I managed to it this weekend and was quite impressed.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First, I needed an entity class:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;javax.persistence.Entity&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;javax.persistence.GeneratedValue&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;javax.persistence.Id&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

&lt;span class=&#34;nd&#34;&gt;@Entity&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;SensorEndpoint&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;nd&#34;&gt;@Id&lt;/span&gt;
    &lt;span class=&#34;nd&#34;&gt;@GeneratedValue&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;long&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;id&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;private&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;endpointUrl&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;

    &lt;span class=&#34;c1&#34;&gt;// for hibernate&lt;/span&gt;
    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;SensorEndpoint&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;SensorEndpoint&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;endpointUrl&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;name&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
        &lt;span class=&#34;k&#34;&gt;this&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;endpointUrl&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;endpointUrl&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;
    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;c1&#34;&gt;// Getters and Setters omitted&lt;/span&gt;
&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;My entity just has an id which will be used as primary key in the database, a descriptive name and an other String (purpose of this one is not important now).&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Now I want a Repository to store and retrieve these objects in the database. Spring Data makes this super easy. I only have to create an interface, implementation is done automatically by Spring Data:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>JIRA Database Values 3.1 released</title>
      <link>https://www.wimdeblauwe.com/blog/2013/2013-12-09-jira-database-values-3.1-released/</link>
      <pubDate>Mon, 09 Dec 2013 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2013/2013-12-09-jira-database-values-3.1-released/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I have just released the version 3.1 of the JIRA Database values plugin. It fixes the issue that sometimes the AJAX style input did not work in the create issue screen. The plugin is compatible with Atlassian JIRA 6.x.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;See &lt;a class=&#34;bare&#34; href=&#34;https://marketplace.atlassian.com/plugins/org.deblauwe.jira.plugin.database-values-plugin&#34;&gt;https://marketplace.atlassian.com/plugins/org.deblauwe.jira.plugin.database-values-plugin&lt;/a&gt; for more info and download.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Database Values Plugin upgraded for JIRA 6</title>
      <link>https://www.wimdeblauwe.com/blog/2013/2013-05-22-database-values-plugin-upgraded-for-jira-6/</link>
      <pubDate>Wed, 22 May 2013 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2013/2013-05-22-database-values-plugin-upgraded-for-jira-6/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I just finished upgrading the JIRA Database Values Plugin for JIRA 6. Download it from &lt;a class=&#34;bare&#34; href=&#34;https://marketplace.atlassian.com/plugins/org.deblauwe.jira.plugin.database-values-plugin&#34;&gt;https://marketplace.atlassian.com/plugins/org.deblauwe.jira.plugin.database-values-plugin&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Upgrading your plugin to JIRA 5.1 presentation slides</title>
      <link>https://www.wimdeblauwe.com/blog/2013/2013-01-31-upgrading-your-plugin-to-jira-5.1-presentation-slides/</link>
      <pubDate>Thu, 31 Jan 2013 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2013/2013-01-31-upgrading-your-plugin-to-jira-5.1-presentation-slides/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Last week, I gave a presentation on upgrading the &lt;a href=&#34;https://marketplace.atlassian.com/plugins/org.deblauwe.jira.plugin.database-values-plugin&#34;&gt;JIRA Database values plugin&lt;/a&gt; to JIRA 5.1 for the &lt;a href=&#34;https://twitter.com/aug_be&#34;&gt;Atlassian Belgian User Group&lt;/a&gt;. For those that are interested, the slides can be viewed here: &lt;a class=&#34;bare&#34; href=&#34;https://docs.google.com/presentation/d/100KHFe-oxlVmud6nhSbgdjUaXFO2Jnf7qPcDhZpPGDo/pub?start=false&amp;amp;loop=false&amp;amp;delayms=3000&#34;&gt;https://docs.google.com/presentation/d/100KHFe-oxlVmud6nhSbgdjUaXFO2Jnf7qPcDhZpPGDo/pub?start=false&amp;amp;loop=false&amp;amp;delayms=3000&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>JIRA Database Values Plugin for JIRA 5.1 released</title>
      <link>https://www.wimdeblauwe.com/blog/2013/2013-01-16-jira-database-values-plugin-for-jira-5.1-released/</link>
      <pubDate>Wed, 16 Jan 2013 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2013/2013-01-16-jira-database-values-plugin-for-jira-5.1-released/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I just released the new version of the JIRA Database Values Plugin. It is now compatible with JIRA 5.1 and 5.2. Most notable change is that under the hood &lt;a href=&#34;http://jquery.com/&#34;&gt;jQuery&lt;/a&gt; is used now instead of &lt;a href=&#34;http://script.aculo.us/&#34;&gt;Scriptaculous&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;See &lt;a href=&#34;https://marketplace.atlassian.com/plugins/org.deblauwe.jira.plugin.database-values-plugin&#34;&gt;Atlassian Marketplace&lt;/a&gt; for the download.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The source code has also been migrated to the excellet Bitbucket service. Sources can be found at &lt;a class=&#34;bare&#34; href=&#34;https://bitbucket.org/wimdeblauwe/jdvp&#34;&gt;https://bitbucket.org/wimdeblauwe/jdvp&lt;/a&gt; and the documentation at the embedded wiki: &lt;a class=&#34;bare&#34; href=&#34;https://bitbucket.org/wimdeblauwe/jdvp/wiki/Home&#34;&gt;https://bitbucket.org/wimdeblauwe/jdvp/wiki/Home&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This version would not have been possible without the people that donated on &lt;a href=&#34;http://www.gofundme.com/1efxt4&#34;&gt;GoFundMe&lt;/a&gt; so a big thank you to them all!&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Tooltips in detached windows with Adobe AIR</title>
      <link>https://www.wimdeblauwe.com/blog/2013/2013-01-10-tooltips-in-detached-windows-with-adobe-air/</link>
      <pubDate>Thu, 10 Jan 2013 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2013/2013-01-10-tooltips-in-detached-windows-with-adobe-air/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I just had an issue where we display a tooltip on a custom component in Flex. This worked fine until we also used this component in a &lt;a href=&#34;http://livedocs.adobe.com/flex/3/html/help.html?content=WorkingWithWindows_1.html&#34;&gt;detached window in Adobe AIR&lt;/a&gt;. We never saw the tooltip in the detached window.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This is the code we used before in the custom component:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;m_tooltip = ToolTipManager.createToolTip( tooltip, event.stageX + 10, event.stageY + 10 );&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This is what fixed it:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;m_tooltip = ToolTipManager.createToolTip( tooltip, event.stageX + 10, event.stageY + 10, null, this );&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Database Values Plugin for JIRA 5.1</title>
      <link>https://www.wimdeblauwe.com/blog/2012/2012-12-29-database-values-plugin-for-jira-5.1/</link>
      <pubDate>Sat, 29 Dec 2012 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2012/2012-12-29-database-values-plugin-for-jira-5.1/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I have been quite busy with upgrading the JIRA Database Values Plugin to support JIRA 5.1. I never thought I would pull it off with the inline editing stuff, but it is looking good so far. If you are interested, please consider donating on &lt;a class=&#34;bare&#34; href=&#34;http://www.gofundme.com/1efxt4&#34;&gt;http://www.gofundme.com/1efxt4&lt;/a&gt; . As soon as I reach the fund goal, I will release the new version. If you donate 50 euro or more, you can get early access to test versions.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Restarting an Adobe AIR application when using video</title>
      <link>https://www.wimdeblauwe.com/blog/2012/2012-06-29-restarting-an-adobe-air-application-when-using-video/</link>
      <pubDate>Fri, 29 Jun 2012 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2012/2012-06-29-restarting-an-adobe-air-application-when-using-video/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;An &lt;a href=&#34;http://www.google.be/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;ved=0CFsQFjAA&amp;amp;url=http%3A%2F%2Fwww.adobe.com%2Fproducts%2Fair.html&amp;amp;ei=XZLtT5mCA4KEhQf0gumNDQ&amp;amp;usg=AFQjCNHADmIokjuhElojs6atCUBwfUGprA&amp;amp;sig2=skWgKkRcWHMV7phr8ae05A&#34;&gt;Adobe AIR&lt;/a&gt; application can restart itself, using the code found in &lt;a href=&#34;http://stackoverflow.com/questions/1821749/how-to-restart-a-standalone-adobe-air-flex-application&#34;&gt;this StackOverflow question&lt;/a&gt;. However, it does not seem to work always in our application. We are creating new &lt;a href=&#34;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/NativeWindow.html&#34;&gt;NativeWindow&lt;/a&gt;s to allow the user to detach a window from the main application window to support using multiple monitors. The problem seemed to be more frequent when windows were detached.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;After more investigation, it seemed that not the detached windows, but the video playing the detached windows was the problem. We now first make sure we stop all video that is playing before we do the restart code. We are using the &lt;a href=&#34;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Video.html&#34;&gt;Video&lt;/a&gt; class in our application, so we stop it like this:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Updating JIRA links in Confluence when migrating to new server</title>
      <link>https://www.wimdeblauwe.com/blog/2012/2012-03-08-updating-jira-links-in-confluence-when-migrating-to-new-server/</link>
      <pubDate>Thu, 08 Mar 2012 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2012/2012-03-08-updating-jira-links-in-confluence-when-migrating-to-new-server/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We just finished the process of migrating our internal &lt;a href=&#34;http://www.atlassian.com/software/jira/overview&#34;&gt;JIRA&lt;/a&gt; server running on Windows to a new Ubuntu machine. The migration process went fairly smooth. However, the URL of JIRA has also changed and we have a lot of links in our &lt;a href=&#34;http://www.atlassian.com/software/confluence/overview&#34;&gt;Confluence&lt;/a&gt; wiki pointing to JIRA.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;To update all the links manually, would be tedious and error-prone, so I used some &lt;a href=&#34;http://groovy.codehaus.org/&#34;&gt;Groovy&lt;/a&gt; together with the excellent &lt;a href=&#34;https://studio.plugins.atlassian.com/wiki/display/CSOAP/Confluence+Command+Line+Interface&#34;&gt;Confluence Command Line Interface&lt;/a&gt; to make this automatic.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Synchronisation of Atlassian JIRA with LiquidPlanner</title>
      <link>https://www.wimdeblauwe.com/blog/2011/2011-10-13-synchronisation-of-atlassian-jira-with-liquidplanner/</link>
      <pubDate>Thu, 13 Oct 2011 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2011/2011-10-13-synchronisation-of-atlassian-jira-with-liquidplanner/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;While &lt;a href=&#34;http://www.atlassian.com/software/jira/&#34;&gt;Atlassian JIRA&lt;/a&gt; is a great tool to manage a project, it is not really convenient to handle (many) multiple simultanious projects, especially as people need to work on different projects at the same time. I recently discovered &lt;a href=&#34;http://www.liquidplanner.com/&#34;&gt;LiquidPlanner&lt;/a&gt; which claims to be really good at multi-project/multi-resources management. After the trial period, our company decided to go with it and is very happy with the results so far.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Since we have already much information in JIRA, we needed a way to pull this information into LiquidPlanner in an automated way. I wrote a small tool in &lt;a href=&#34;http://groovy.codehaus.org/&#34;&gt;Groovy&lt;/a&gt; that uses the &lt;a href=&#34;http://www.liquidplanner.com/api-guide/&#34;&gt;LiquidPlanner REST API&lt;/a&gt; and the &lt;a href=&#34;http://docs.atlassian.com/jira/REST/latest/&#34;&gt;JIRA REST API&lt;/a&gt; to automate this. This blog entry will show how it works, &lt;a href=&#34;http://wp.me/p16Vjw-2C&#34;&gt;part 2&lt;/a&gt; will show the code to make it all work.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Synchronisation of Atlassian JIRA with LiquidPlanner - Part 2</title>
      <link>https://www.wimdeblauwe.com/blog/2011/2011-10-13-synchronisation-of-atlassian-jira-with-liquidplanner---part-2/</link>
      <pubDate>Thu, 13 Oct 2011 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2011/2011-10-13-synchronisation-of-atlassian-jira-with-liquidplanner---part-2/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;a href=&#34;http://wp.me/p16Vjw-2l&#34;&gt;Part 1&lt;/a&gt; showed how the &lt;a href=&#34;http://www.atlassian.com/software/jira/&#34;&gt;JIRA&lt;/a&gt; to &lt;a href=&#34;http://www.liquidplanner.com/&#34;&gt;LiquidPlanner&lt;/a&gt; synchronizer makes it really easy to sync the remaining estimates on your JIRA issues with LiquidPlanner. This part will show the &lt;a href=&#34;http://groovy.codehaus.org/&#34;&gt;Groovy&lt;/a&gt; code to make it all work.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;strong&gt;Getting Started&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I used Groovy 1.8.2 and &lt;a href=&#34;http://groovy.codehaus.org/HTTP+Builder&#34;&gt;HTTPBuilder&lt;/a&gt; 0.5.1. Editing was done in &lt;a href=&#34;http://www.jetbrains.com/idea/&#34;&gt;Jetbrains IntelliJ IDEA&lt;/a&gt; 10.5.2 which has excellent &lt;a href=&#34;http://www.jetbrains.com/idea/features/groovy_grails.html&#34;&gt;Groovy support&lt;/a&gt;. The project is compiled and packaged using &lt;a href=&#34;http://maven.apache.org/&#34;&gt;Maven&lt;/a&gt; 3.0.3 with various plugins.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;strong&gt;Connecting to JIRA and LiquidPlaner REST API&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>JIRA Speakeasy extension to show &#39;key - summary&#39; in an inline dialog</title>
      <link>https://www.wimdeblauwe.com/blog/2011/2011-07-01-jira-speakeasy-extension-to-show--key---summary--in-an-inline-dialog/</link>
      <pubDate>Fri, 01 Jul 2011 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2011/2011-07-01-jira-speakeasy-extension-to-show--key---summary--in-an-inline-dialog/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We use JIRA at works to track issues (duh :)). What I need to do a lot is copy the key and summary of an issue to use as a checkin comment. If you copy paste it from an issue page you end up with this:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;quoteblock&#34;&gt;
&lt;blockquote&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;PRJ-234&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This is the summary of the issue&lt;/p&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;But what I really want is this:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;quoteblock&#34;&gt;
&lt;blockquote&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;PRJ-234 - This is the summary of the issue&lt;/p&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Entering the JIRA database values plugin in the Atlassian codegeist competition</title>
      <link>https://www.wimdeblauwe.com/blog/2011/2011-05-03-entering-the-jira-database-values-plugin-in-the-atlassian-codegeist-competition/</link>
      <pubDate>Tue, 03 May 2011 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2011/2011-05-03-entering-the-jira-database-values-plugin-in-the-atlassian-codegeist-competition/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I just entered my &lt;a href=&#34;https://plugins.atlassian.com/plugin/details/4969&#34;&gt;JIRA Database Values Plugin&lt;/a&gt; in the &lt;a href=&#34;http://codegeist.atlassian.com/&#34;&gt;Atlassian Codegeist&lt;/a&gt; competition. You can view my entry here: &lt;a class=&#34;bare&#34; href=&#34;http://codegeist.atlassian.com/entry/167349&#34;&gt;http://codegeist.atlassian.com/entry/167349&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I uploaded a video with it to make it more visual. I was quite surprised to find it so easy to do on my Ubuntu (just updated to 11.04).&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;olist arabic&#34;&gt;
&lt;ol class=&#34;arabic&#34;&gt;
&lt;li&gt;
&lt;p&gt;Installed &lt;a href=&#34;http://recordmydesktop.sourceforge.net/about.php&#34;&gt;recordMyDesktop&lt;/a&gt; to do the actual screencast recording:&lt;/p&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;code&gt;sudo apt-get install gtk-recordmydesktop&lt;/code&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This will install a program shortcut called &amp;#39;Desktop recorder&amp;#39;. Once running, there is a handy systray icon to start and stop the recording.&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Installed &lt;code&gt;mencoder&lt;/code&gt; and used this command line to convert the &lt;code&gt;.ogv&lt;/code&gt; file to xvid:&lt;/p&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;code&gt;mencoder out.ogv -ovc xvid -xvidencopts pass=1 -o jdvp.avi&lt;/code&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Release JIRA Database Values Plugin 1.3.0</title>
      <link>https://www.wimdeblauwe.com/blog/2011/2011-04-11-release-jira-database-values-plugin-1.3.0/</link>
      <pubDate>Mon, 11 Apr 2011 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2011/2011-04-11-release-jira-database-values-plugin-1.3.0/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;A new JIRA Database Values plugin has been released, see &lt;a class=&#34;bare&#34; href=&#34;https://plugins.atlassian.com/plugin/details/4969&#34;&gt;https://plugins.atlassian.com/plugin/details/4969&lt;/a&gt; for download.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The major change is compatibility with JIRA 4.3.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;There are some additional minor improvements like:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use the internal JIRA db if no connection parameters are defined in the properties file&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Honor the sort order used in the SQL query when using cascading comboboxes&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Fix for Z-order if the AJAX popup appears over some other elements (thanks to Edgars Fabricius for providing a patch)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Validation of multiple email addresses in flex</title>
      <link>https://www.wimdeblauwe.com/blog/2011/2011-02-07-validation-of-multiple-email-addresses-in-flex/</link>
      <pubDate>Mon, 07 Feb 2011 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2011/2011-02-07-validation-of-multiple-email-addresses-in-flex/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;For our flex application, I had a &amp;#39;cc&amp;#39; field that could handle multiple email addresses. When adding validation, I first used the standard &lt;a href=&#34;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/validators/EmailValidator.html&#34;&gt;EmailValidator&lt;/a&gt; class. However, this would not work as soon as you want to add multiple email addresss, like:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;code&gt;foo@company.com;&lt;a href=&#34;mailto:bar@company.com&#34;&gt;bar@company.com&lt;/a&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Luckily, creating a custom validator to handle this case is quite easy:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;import mx.validators.EmailValidator;
import org.as3commons.lang.StringUtils;

/**
* This validator allows validation of multiple email addresses
* that are separated by a semicolon (;)
*/

public class CompositeEmailValidator extends EmailValidator
{
    public function CompositeEmailValidator()
    {
    }

    override protected function doValidation( value:Object ):Array
    {
        var result:Array = [];
        var emailsString:String = String( value );
        var emails:Array = StringUtils.tokenizeToArray( emailsString, &amp;#34;;&amp;#34; );

        for each (var email:String in emails)
        {
            var emailResult:Array = super.doValidation( email );

            if (emailResult.length &amp;gt; 0)
            {
                result = result.concat( emailResult );
            }
        }

        return result;
    }
}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>JIRA Database values plugin   new release 1.2</title>
      <link>https://www.wimdeblauwe.com/blog/2011/2011-01-20-jira-database-values-plugin---new-release-1.2/</link>
      <pubDate>Thu, 20 Jan 2011 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2011/2011-01-20-jira-database-values-plugin---new-release-1.2/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I am very proud on this new release of my &lt;a href=&#34;https://plugins.atlassian.com/plugin/details/4969&#34;&gt;jira database values plugin&lt;/a&gt;. Not only does it have a bunch of really nice additions (which I am going to explain a bit more in detail here), but there are also a lot of people that have helped this release by providing bug reports, patches, …​&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;strong&gt;1) JQL Function to search on &amp;#39;secondary&amp;#39; attributes&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I am most proud of this one, because I think it will be really useful to a lot of people. Suppose you link to your customer database and would like to know how many issues are coming from customers in Belgium. This was almost impossible to do before, but with the new &lt;code&gt;dbValuesMatching&lt;/code&gt; JQL function, it is a piece of cake:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>JQL query for the jira database values plugin</title>
      <link>https://www.wimdeblauwe.com/blog/2011/2011-01-13-jql-query-for-the-jira-database-values-plugin/</link>
      <pubDate>Thu, 13 Jan 2011 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2011/2011-01-13-jql-query-for-the-jira-database-values-plugin/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I have just finished implementing a custom JQL query for the &lt;a href=&#34;https://plugins.atlassian.com/plugin/details/4969&#34;&gt;jira database values plugin&lt;/a&gt;. It allows to search on anything you want related to the value you have in your custom field.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Take the example of a &amp;#34;Customer&amp;#34; custom field that links to a customer table in a database. Previously it was not possible to search for all issues linked to the customers from a certain country for example. With the new JQL query, it is as easy as:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Make IntelliJ IDEA X look great on Linux</title>
      <link>https://www.wimdeblauwe.com/blog/2010/2010-12-10-make-intellij-idea-x-look-great-on-linux/</link>
      <pubDate>Fri, 10 Dec 2010 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2010/2010-12-10-make-intellij-idea-x-look-great-on-linux/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The new &lt;a href=&#34;http://www.jetbrains.com/idea/&#34;&gt;IntelliJ IDEA&lt;/a&gt;, called X, is out and there are &lt;a href=&#34;http://www.jetbrains.com/idea/whatsnew/index.html&#34;&gt;lots of new goodies&lt;/a&gt; in there. For my day-to-day job, the most important is the improved Flex support.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I work on Ubuntu 10.10 and by default IntelliJ does not look that great. This is a screenshot of the file menu:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;https://www.wimdeblauwe.com/images//2010/12/selection_009.png&#34; alt=&#34;selection 009&#34;/&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Go to &lt;code&gt;File&lt;/code&gt; &amp;gt; &lt;code&gt;Settings&lt;/code&gt; and select &lt;code&gt;Appearance&lt;/code&gt; in the list. Check the &lt;code&gt;Override default fonts by&lt;/code&gt; checkbox and select &amp;#39;DejaVu Sans&amp;#39; from the list of fonts:&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Flex gotchas for Java programmers</title>
      <link>https://www.wimdeblauwe.com/blog/2010/2010-11-29-flex-gotchas-for-java-programmers/</link>
      <pubDate>Mon, 29 Nov 2010 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2010/2010-11-29-flex-gotchas-for-java-programmers/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;As a long time Java programmer switching to Flex, I have had some real gotcha moments. I want to share a few so you don’t fall into the same pitfalls as I have done.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Casting&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Equals (or the lack of it)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Setter optimization&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;strong&gt;Casting&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In Java, you cast an object to a class or interface as follows:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code data-lang=&#34;java&#34;&gt;&lt;span class=&#34;nc&#34;&gt;Object&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;obj&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;...&lt;/span&gt;

&lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;str&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nc&#34;&gt;String&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;obj&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In Flex, you have 2 ways to do it:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;rouge highlight&#34;&gt;&lt;code&gt;var obj:Object = ...
var str:String = String(obj);
var str2:String = obj as String;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>How to expose your flex test code to other Maven modules using flex mojos</title>
      <link>https://www.wimdeblauwe.com/blog/2010/2010-10-18-how-to-expose-your-flex-test-code-to-other-maven-modules-using-flex-mojos/</link>
      <pubDate>Mon, 18 Oct 2010 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2010/2010-10-18-how-to-expose-your-flex-test-code-to-other-maven-modules-using-flex-mojos/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you use &lt;a href=&#34;http://maven.apache.org/&#34;&gt;Maven&lt;/a&gt;, you most probably use the excellent &lt;a href=&#34;http://flexmojos.sonatype.org/&#34;&gt;flex-mojos plugin&lt;/a&gt; to build your flex code. This post will show you how to expose the test code (that does not get included in your normal swc or swf) to other maven modules or projects. This is most useful on bigger projects where you might have some abstract test classes you want to share or builder classes for complex domain objects that you need to create over and over again in unit tests.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>New (bugfix) release JIRA Database Values Plugin 1.1.1</title>
      <link>https://www.wimdeblauwe.com/blog/2010/2010-10-13-new--bugfix--release-jira-database-values-plugin-1.1.1/</link>
      <pubDate>Wed, 13 Oct 2010 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2010/2010-10-13-new--bugfix--release-jira-database-values-plugin-1.1.1/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Quick update: there is a new release of the JIRA Database Values Plugin 1.1.1 because there was an issue with 1.1 if you had issues without a value assigned for your custom field. Download the new version here: &lt;a class=&#34;bare&#34; href=&#34;https://plugins.atlassian.com/plugin/details/4969&#34;&gt;https://plugins.atlassian.com/plugin/details/4969&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>New release JIRA Database Values Plugin 1.1</title>
      <link>https://www.wimdeblauwe.com/blog/2010/2010-10-09-new-release-jira-database-values-plugin-1.1/</link>
      <pubDate>Sat, 09 Oct 2010 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2010/2010-10-09-new-release-jira-database-values-plugin-1.1/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I am proud to announce a new 1.1 version of the &lt;a href=&#34;https://plugins.atlassian.com/plugin/details/4969&#34;&gt;JIRA Database Values Plugin&lt;/a&gt;. It has the following improvements:&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Support AJAX lookup in searching&lt;/strong&gt;: If you use the simple mode for searching in JIRA, you can now select a value from your custom field via AJAX lookup. This makes it a lot easier then that long list of items you might have in the default search mode. The only drawback is that you can only select 1 item. The list allows multi-selection. Use the &lt;code&gt;search.type&lt;/code&gt; property in your configuration file to select with search mode you want to use.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Support for history and activity view&lt;/strong&gt;: You can now choose how your value is rendered in the history view and the activity views. In previous versions, the primary key was displayed, which is usually not what you want. Use &lt;code&gt;rendering.changelog.viewpattern&lt;/code&gt; in the configuration file to configure this. Note that it is optional as the &lt;code&gt;rendering.viewpattern&lt;/code&gt; will be used by default.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Support for statistics views&lt;/strong&gt;: You can now use your custom field in a pie chart, 2d statistics filter and single level group by report. If you want to set a different rendering pattern for these views, use the &lt;code&gt;rendering.statistics.viewpattern&lt;/code&gt; key in your properties file. Note that this one does not support HTML, so if your &lt;code&gt;rendering.viewpattern&lt;/code&gt; has HTML, you need to add this key and provide a pattern that does not use HTML.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Choose how to render NULL values&lt;/strong&gt;: Previous releases of the plugin always rendered a NULL value as &amp;#39;Unknown&amp;#39;. As of this release, it will be rendered as an empty string. You can override what is shown by using this:&lt;/p&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;code&gt;rendering.viewpattern={0} {1,N/A}&lt;/code&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This means that a null value in the 2nd column of your SQL query will be rendered as &amp;#39;N/A&amp;#39;. &lt;em&gt;Thanks to &lt;a href=&#34;http://andrewgdotcom.wordpress.com/&#34;&gt;Andrew Gallagher&lt;/a&gt; for providing the patch.&lt;/em&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Add a separate query for the search&lt;/strong&gt;: You might want to separate the queries you use for editing/viewing and searching. The property &lt;code&gt;sql.query.search&lt;/code&gt; key allows to do just this.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Using AspectJ and Annotations to document framework pollution in the domain model</title>
      <link>https://www.wimdeblauwe.com/blog/2010/2010-10-05-using-aspectj-and-annotations-to-document-framework-pollution-in-the-domain-model/</link>
      <pubDate>Tue, 05 Oct 2010 00:00:00 +0000</pubDate>
      <guid>https://www.wimdeblauwe.com/blog/2010/2010-10-05-using-aspectj-and-annotations-to-document-framework-pollution-in-the-domain-model/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;This blog post will show you how to use &lt;a href=&#34;http://www.eclipse.org/aspectj/&#34;&gt;Aspectj&lt;/a&gt; and Annotations in Java to avoid that certain framework artifacts &amp;#39;pollute&amp;#39; your code and people start calling methods that you really don’t want when you thought out your design.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;A concrete example for this if you want to create immutable objects. Value Objects in &lt;a href=&#34;http://en.wikipedia.org/wiki/Domain-driven_design&#34;&gt;Domain Driven Design&lt;/a&gt; should be like this. You create a constructor for all your object needs, mark all fields final and add some public getters. But now you want to send this object to a &lt;a href=&#34;http://www.adobe.com/products/flex/&#34;&gt;Flex&lt;/a&gt; client using &lt;a href=&#34;http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/&#34;&gt;BlazeDS&lt;/a&gt;. You need a default constructor and getters for all properties. Your immutable object, just became highly mutable,  just because the framework you use needs this. Same can be said for &lt;a href=&#34;http://www.hibernate.org/&#34;&gt;Hibernate&lt;/a&gt; or &lt;a href=&#34;http://www.oracle.com/technetwork/middleware/coherence/overview/index.html&#34;&gt;Coherence&lt;/a&gt; that need a default constructor.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    
  </channel>
</rss>