Archive by Author

Validate JSON in Java with JSON Schema

Describe and validate your JSON documents I programmed a lot with XML and XML Schema helped me to define which elements and attributes can appear in a document. So I always wanted a grammar for JSON too. JSON Schema is exactly what I wanted. It has the following advantages:* describes existing data formats * provides […]

@apiNote, @implSpec and @implNote with Gradle

How-to build JavaDoc In this post, I explain to you how you can build JavaDoc with the new tags @apiNote, @implSpec and @implNote with Gradle. Prior to the new tags, the „JavaDoc“ always consisted of documentation about implementation and informative notes in a mixed way. With @apiNote, @implSpec and @implNote you can place different kinds […]

Microservices with Quarkus

Develop microservices with Quarkus and MicroProfile I bet you already have heard about Quarkus and MicroProfile. Microservices is today the most popular architecture style when creating cloud-native applications. Spring Boot is a good choice, but typical frameworks like Java EE/Jakarta EE, are not sufficient. Now Quarkus is an interesting alternative. Quarkus („Supersonic Subatomic Java“) is […]

HelloWorld with RESTEasy

An example with Gradle and current libraries RESTEasy is a cool project for building RESTful Web Services with Java. It is an JAX-RS implementation. And I really like the tight integration into quarkus. I show you how to build a simple project with Gradle (build.gradle.kts): That’s everything you need for building the project. And the […]

REST != REST

Standards and best practices REST is a defacto standard and every developer implements REST APIs in a different way. In this talk I’ll show best practices and standards around REST. I talk about developer experience with REST APIs, resource naming conventions, URI structure, HTTP methods / status codes and the REST Maturity Model. And the […]

Test your code not throwing any exception

with JUnit and Assertj Recently I had to test that the code does not throw any exception. We all know that AssertJ gives us a powerful set of assertions which improves your test code readability. And again, AssertJ helped me to do the job with assertThatCode: You can find more assertions example on github. I […]

Id Software – Programming Principles

Produce constantly shippable codebase I had the chance to see John Romero at a conference. He talked about the Id Software programming principles. They defined these rules through experience. Each is built upon one another, so it’s a unique methodology and which helps you to produce constantly shippable codebase. You know these rules, but I […]

Spring Actuator Metrics availableTags

Get useful metrics to monitor your app With Spring Actuator API several useful metrics can be exposed that you can use to monitor your Spring Boot application. Metrics like application health or the last HTTP requests. I’ll show you how to do that. I’ve made an example project you can found at https://github.com/claudioaltamura/docker-springboot-helloworld. After starting […]

Format code like google

Get easy look-alike readable code with IntelliJ Spotless is are really cool tool for formatting your code with build tools. If you like, you can do that with your IDE too. I show your how to configure IntelliJ, so your code is automatically formatted while you save a file. First you have to install the […]

Discover updates or vulnerabilities

Keep your dependencies up-to-date with gradle This is an import task, e.g. nearly every 6 months major releases of frameworks are available or new vulnerabilities are found on a daily basis. I’ll show you two gradle plugins which helps you that your software project won’t be left behind. The first one is gradle-version-plugin. This plugin […]