Integrating Spring Data JPA with Spring Boot: A Practical Guide

Adding the Required Dependency Include the Spring Boot Data JPA starter in your POM file to enable JPA repository support: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> Configuring Aplication Properties Set up your databa ...

Posted on Thu, 13 Aug 2026 16:35:26 +0000 by belphegor

Logback Pattern Syntax Quick Reference

Common Conversion Specifiers Date and Time %d{pattern}: Outputs the current timestamp. For example, %d{yyyy-MM-dd HH:mm:ss.SSS} yields 2024-07-11 15:34:55.123. Log Level %level or %p: Renders the log severity (e.g., INFO, DEBUG, WARN, ERROR). Message and Source Context %msg or %m: The actual log message. %C or %class: Fully qualified class ...

Posted on Sun, 09 Aug 2026 16:54:34 +0000 by MishaPappa

Getting Started with GraphQL Kotlin

Introduction to GraphQL Kotlin GraphQL Kotlin is a collection of libraries built on top of graphql-java, specifically designed for the Kotlin language. Its primary goal is to streamline the development of both GraphQL clients and servers. This guide provides an overview of the project's key features and how to use them effectively. Project Over ...

Posted on Tue, 04 Aug 2026 16:00:20 +0000 by Shygirl

Creating a Custom Spring Boot Starter

Custom Spring Boot starters are valuable for encapsulating common functionalities, such as integrating with notification services like Feishu or DingTalk, or standardizing response code handling. Project Setup Initialize a Maven Project: Create a new Maven project, for instance, named holmium-spring-boot-starter. Implement Core Functionalit ...

Posted on Sun, 02 Aug 2026 16:05:18 +0000 by tibiz

Integrating MyBatis with Spring Boot Applications

Configuration Setup Establish database connectivity and tune the connection pool via application.yml. The following excerpt demonstrates HikariCP parameter optimization alongside MyBatis scanning direcitves. server: port: 8080 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://db-server:3306/data_stor ...

Posted on Thu, 30 Jul 2026 16:32:24 +0000 by PHP_TRY_HARD

Resolving MyBatis-Plus XML Mapper Scanning Issues in Spring Boot with Gradle

Project Setup with MyBatis-Plus and Gradle Start with a standard Spring Boot 2.3.x project using Gradle. Below is a minimal build.gradle configuration: plugins { id 'org.springframework.boot' version '2.3.12.RELEASE' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } group = 'com.example' version = '0.0.1-SNA ...

Posted on Wed, 29 Jul 2026 16:25:04 +0000 by suge

Generating Dynamic Excel Files in Spring Boot with Apache POI

Introduction Implementing data export functionality is a common requirement in enterprise Java applications. By leveraging the Apache POI library, developers can generate Excel spreadsheets programmatically. This approach allows for dynamic column mapping using Java annotations and reflection, ensuring that the spreadsheet structure remains syn ...

Posted on Tue, 28 Jul 2026 17:14:55 +0000 by Darkmatter5

Integrating Ehcache and Cache Annotations in Spring Boot Applications

Core Cache Annotations Spring Boot simplifies data caching through a declarative approach. To utilize the cache abstraction, ensure the @EnableCaching annotation is present on a configuration class. The framework manages storage based on method-level annotations. Retrieving Cached Results The @Cacheable annotation applies to read operations. Wh ...

Posted on Sat, 25 Jul 2026 16:43:23 +0000 by ns1025

Implementing JWT-Based Authentication and Authorization with Spring Security

This guide provides a comprehensive walkthrough for building robust authentication and authorization mechanisms using Spring Security with JWT tokens, Redis session storage, and database-backed user management. Core Concepts of Access Control Any system involving user participation requires access control mechanisms as part of its security arch ...

Posted on Sat, 25 Jul 2026 16:21:40 +0000 by THW

Configuring AuthenticationManager in Spring Security 5.7+ Without WebSecurityConfigurerAdapter

With Spring Security 5.7.4, the framework has depercated WebSecurityConfigurerAdapter, requiring develoeprs to adopt new configuration patterns. When implementing custom authentication filters that extend UsernamePasswordAuthenticationFilter and override the attemptAuthentication method, obtaining an AuthenticationManager instance becomes chall ...

Posted on Thu, 23 Jul 2026 16:31:54 +0000 by RamboJustRambo