Creating a Custom Spring Boot Starter with Auto-Configuration

Begin by creating a new Maven project. The pom.xml should define the Spring Boot parent and include the web sttarter dependency. <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.0</version> <relativePath/> </pa ...

Posted on Thu, 02 Jul 2026 16:33:54 +0000 by traxy

ClickHouse Docker Deployment and Spring Boot Integration Guide

Docker Deployement Configuration ClickHouse can be easily deployed using Docker. The following configuration covers the essential setup including network ports, storage volumes, and security parameters. Basic Container Launch docker run -d \ --name=clickhouse-server \ -e CLICKHOUSE_ADMIN_PASSWORD=secure_password \ --ulimit nofile=262144:2 ...

Posted on Wed, 01 Jul 2026 18:05:37 +0000 by jackie11

Creating a Docker Image for a Java JAR Application

Docker enables developers to package applications along with their dependencies into portable containers. This approach simplifies deployment across different environments. A common use case involves containerizing a Sprinng Boot or other Java application packaged as an executable JAR file. Prerequisites An executable .jar file (e.g., myapp.ja ...

Posted on Tue, 30 Jun 2026 17:58:12 +0000 by yankeefan238

Deploying Spring Boot Applications as WAR Files on External Tomcat

Configuring Maven for WAR Output Modify the build configuration to change the artifact type. Set the packaging element to war within the POM. <project> <groupId>com.example</groupId> <artifactId>enterprise-app</artifactId> <version>1.0.0</version> <packaging>war</packaging> ...

Posted on Tue, 30 Jun 2026 17:57:41 +0000 by snk

Spring Boot CORS Handling, Commons Lang3 Utility Guide, and Custom Startup Banner Configuration

Per-Controller CORS Setup Apply the @CrossOrigin annotation directly to a controller method or entire controller to enable cross-origin requests for specific endpoints: @RestController @RequestMapping("/system") public class SystemInfoController { @CrossOrigin @GetMapping("/current-time") public ServiceResponse ...

Posted on Mon, 29 Jun 2026 16:55:43 +0000 by Chrysanthus

Developing an AI-Powered Chatbot with Spring AI and Tencent CodeBuddy

Introduction to Spring AI for Chatbot Development Integrating artificial intelligence into applications is a growing trend, and frameworks like Spring AI simplify this processs for Spring Boot developers. Spring AI provides a robust, open-source solution for incorporating AI capabilities into Java-based applications, enabling features from auto ...

Posted on Mon, 29 Jun 2026 16:35:02 +0000 by jerbecca

Overview of the Spring Framework and Its Core Concepts

Spring Framework Overview Spring Framework is an open-source, lightweight Java development platform desgined to enhance development efficiency and system maintainability. It provides support for Inversion of Control (IoC) and Aspect-Oriented Programming (AOP), simplifies database access, integrates third-party components (email, scheduling, cac ...

Posted on Sun, 28 Jun 2026 18:13:11 +0000 by maGGot_H

Implementing Cross-Origin Policies, API Documentation, Exception Management, and JWT Authentication in Spring Boot

Understanding and Resolving Cross-Origin Requests Cross-Origin Resource Sharing (CORS) is triggered when a browser attempts to fetch resources from an origin differing in protocol, domain, or port from the current page. In decoupled frontend-backend architectures, this restriction enforced by the Same-Origin Policy requires explicit configurati ...

Posted on Sun, 28 Jun 2026 17:30:32 +0000 by akimm

Getting Started with Spring MVC, Spring Boot, and Deep Dive into Spring Session

Spring MVC Spring Controller Before diving into Spring controllers, let's look at a high-level view of what a Java web service does: A Spring controller has three key responsibilities: Bean configuration: applying controller annotations and managing beans Loading web resources: essentially serving web pages URL routing configuration: using th ...

Posted on Sun, 28 Jun 2026 17:25:29 +0000 by johnnyblaze1980

Configuring Database Connections in Spring Boot with MyBatis

Method 1: Using @Value for Property Injection Step 1: Define a properties file (e.g., jdbc.properties) jdbc.driverClassName=com.mysql.cj.jdbc.Driver jdbc.url=jdbc:mysql://127.0.0.1:3306/leyou jdbc.username=root jdbc.password=123456 Step 2: Create a configuration class using @Value package com.caicia.config; import com.alibaba.druid.pool.Druid ...

Posted on Sun, 28 Jun 2026 16:57:31 +0000 by shatteredroses