Show Hibernate/JPA SQL Statements from Spring Boot 1. Overview Spring JDBC and JPA provide abstractions over native JDBC APIs allowing developers to do away with native SQL queries. However, often we need to see those auto-generated SQL queries and the order in which they were executed for debugging purposes. In… Continue Reading sql-logging-spring-boot

Spring Boot Embedded Tomcat Logs 1. Introduction Spring Boot comes with an embedded Tomcat server, which is super-handy. However, we can’t see Tomcat’s logs by default. In this tutorial, we’ll learn how to configure Spring Boot to show Tomcat’s internal and access logs via a toy application. 2. Sample Application… Continue Reading spring-boot-embedded-tomcat-logs

Creating a SOAP Web Service with Spring 1. Overview In this tutorial, we’ll see how to create a SOAP-based web service with Spring Boot Starter Web Services. 2. SOAP Web Services A web service is, in short, a machine-to-machine, platform independent service that allows communication over a network. SOAP is a messaging… Continue Reading spring-boot-soap-web-service

EnvironmentPostProcessor in Spring Boot 1. Overview As of Spring Boot 1.3, we’re able to use the EnvironmentPostProcessor to customize the application’s Environment before application context is refreshed. In this tutorial, let’s take a look at how to load and transform the custom properties into the Environment, and then access those properties.… Continue Reading spring-boot-environmentpostprocessor

Spring Boot Application as a Service 1. Overview This article explores some options of running Spring Boot applications as a service. Firstly, we are going to explain web applications’ packaging options and system services. In the subsequent sections, we explore different alternatives we have when setting up a service for… Continue Reading spring-boot-app-as-a-service

Create a Custom Auto-Configuration with Spring Boot 1. Overview Simply put, the Spring Boot autoconfiguration represents a way to automatically configure a Spring application based on the dependencies that are present on the classpath. This can make development faster and easier by eliminating the need for defining certain beans that… Continue Reading spring-boot-custom-auto-configuration