How to generate getters without 'get' in Java with IntelliJ IDEA

With IntelliJ IDEA, by default, Java getters are generated with a get prefix.
Personally I prefer when a getter’s name is just the field’s name (so does records in Java 14).

»
Author's profile picture Baptiste Le Bail on java and intellij

Simple SEO friendly titles in Java

Sometimes, for SEO purposes, we need to put a string into a URL, like an article title for example.

»
Author's profile picture Baptiste Le Bail on java and seo

How to sanitize HTML in Java

Anytime our web application receives any text that will be rendered to HTML, we must sanitize this text to avoid potential XSS attacks.

»
Author's profile picture Baptiste Le Bail on java and html

Upload, resize and compress JPG images with Spring and ImgScalr

JPG is a common lossy compression format for digital images.
The format is very suitable for web applications (unless you need transparency, then you should use PNG).

»
Author's profile picture Baptiste Le Bail on java and spring

Testing SQL code with JUnit 5, H2 Database and Java code only

Except the initial schema of our database, neither XML nor SQL files will be needed, only pure Java code. Which will ensure a less error prone and clearer code.

»
Author's profile picture Baptiste Le Bail on java and sql