Maven, Spock 2.X and SpringBoot: Project configuration from scratch

The growing popularity of BDD (Behavior Driven Development) makes that more and more developers decide to use Spock Framework for their tests. If you haven't had a chance to familiarize yourself with this testing framework yet, I encourage you to do so, because in some respects it is much better than the standard JUnit 5. Perhaps these differences will make Spock perfect for your needs. In this article, I will focus only on the configuration aspect of the maven and Spock project in several variants - minimal, with the unmodified name of the test classes and the Spock configuration for SpringBoot.

Continue Reading Maven, Spock 2.X and SpringBoot: Project configuration from scratch

[SOLVED] – Spring Boot: Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled.

The title message roughly means that something went wrong when you started the Spring Boot application. Very often the cause can be diagnosed in a few minuets by analyzing the application log. In the following article we will discuss some of the most common causes of errors when starting the Spring context.

Continue Reading [SOLVED] – Spring Boot: Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled.

[SOLVED] NullPointerException – How to fix it?

Today I am going to explain to you the exception known to every Java programmer, namely NullPointerException. I hope that once you get to the end of the article, it will become clear to you why this exception is so special.

Continue Reading [SOLVED] NullPointerException – How to fix it?