Spring REST Validation Example
In this article, we will enhance the previous Spring REST Hello World example, by adding bean validation and custom validator. Technologies used : Spring Boot 2.1.2.RELEASE, Spring 5.1.4.RELEASE, Maven 3,…
Favourite tutorials for developers
Spring Boot is an open-source micro framework maintained by a company called Pivotal. It provides Java developers with a platform to get started with an auto configurable production-grade Spring application. With it, developers can get started quickly without losing time on preparing and configuring their Spring application.
In this article, we will enhance the previous Spring REST Hello World example, by adding bean validation and custom validator. Technologies used : Spring Boot 2.1.2.RELEASE, Spring 5.1.4.RELEASE, Maven 3,…
In this tutorial, we will show you how to use Logback in Spring Boot framework. Technologies used : Spring Boot 2.1.2.RELEASE, Spring 5.1.4.RELEASE, Logback 1.2.3, Maven 3, Java 8
Add the following lines in application.properties to log the Hibernate SQL query. To show sql statement: logging.level.org.hibernate.SQL=debug . To show sql values: logging.level.org.hibernate.type.descriptor.sql=trace
Run the Spring Boot integration test or unit test, many annoying DEBUG and INFO logs are displayed in the console. To disable the logs, turn off the logging.level in both…
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…
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…
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…
This article shows you how to use cURL command to POST JSON data to a Spring REST API.
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…
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,…