SLF4J Logback Tutorial
A simple SLF4J with Logback example. Tested with: SLF4J API 1.7.25, Logback 1.2.3, Maven 3, Java 8. Note: Logback natively implements the SLF4J API.
Spring Boot Hello World example
In this article, we will show you how to develop a Spring Boot REST-style web application. Technologies used: Spring Boot 2.5.5, Maven 3.x, Java 8 or later. Note: Spring Boot…
Spring Boot – Unable to find a @SpringBootConfiguration
The Spring Boot tests @SpringBootTest or @DataJpaTest need to find the @SpringBootConfiguration application class to launch the entire application and do the tests. And if Spring Boot can’t find the…
Spring Boot + JUnit 5 + Mockito
In this article, we will show you how to do Spring Boot 2 integration test with JUnit 5, and also Mockito (Stack: Spring Boot 2.1.2.RELEASE, JUnit 5, Mockito 2, Maven…
cURL – Post JSON data to Spring REST
This article shows you how to use cURL command to POST JSON data to a Spring REST API.
cURL – POST request examples
Some cURL POST request examples for self reference: To POST without data, To POST with data, To POST with a file, add this -F file=@"path/to/data.txt" , To POST with JSON…
Spring REST Hello World Example
In this article, we will show you how to develop a Spring Boot REST style web service to handle CRUD operations from a H2 In-memory database.Technologies used :Spring Boot 2.1.2.RELEASE,…
Gson – Read and write JSON as a stream
Since Gson version 1.6, two new classes JsonReader and JsonWriter are introduced to provide streaming processing on JSON data. Read this Gson streaming documentation to understand what are the benefits…