Dockerfile Reference Guide

Dockerfile Commands Overview Dockerfiles are text-based scripts that define how to build Docker images. Below is a comprehensive reference of essential Dockerfile instructions. Core Instructions ARG variable_name[=default_value] # Defines build-time variables accessible via --build-arg during docker build FROM base_image[:tag] [@digest] [AS bu ...

Posted on Thu, 13 Aug 2026 16:45:24 +0000 by watts

Implementing Multiple Data Sources with Druid in Spring Boot

Componant Implementation DataSource Annotation DataSource.java AspectJ Implementation DataSourceAspect.java Data Source Constants DataSourceConstants.java Dynamic Data Source DynamicDataSource.java Configuration DataSourceConfig.java DataSource Annotation package com.example.datasource.config; import java.lang.annotation.*; ...

Posted on Thu, 13 Aug 2026 16:42:52 +0000 by sweetmaster

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