Configuring and Using Logback for Java Application Logging

Required Dependencies <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.30</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-core</artifactId> <version>1.2.3 ...

Posted on Tue, 23 Jun 2026 16:54:04 +0000 by ternto333

Spring Boot: Core Concepts and Implementation Patterns

Getting Started with Spring Boot To develop a web application using Spring Boot that returns "hello world" when accessing /hello, follow these steps: Create a Spring Boot project with web dependencies Define a controller class with a method and appropriate annotations Run and test the application Request Handler Implementation packa ...

Posted on Tue, 23 Jun 2026 16:06:38 +0000 by Syto

Integrating OSS Object Storage with Spring Boot

This project demonstrates how to integrate an object storage service with a Spring Boot application. We will use Alibaba Cloud OSS (Object Storage Service) as the example provider. First, insure you have created an OSS instance on Alibaba Cloud and obtained the access keys (Access Key ID and Access Key Secret). (Refer to the Alibaba Cloud docum ...

Posted on Sun, 21 Jun 2026 18:03:27 +0000 by ukalpa

Simplifying Role Data Access with MyBatis-Plus Service Wrappers

MyBatis-Plus streamliens service creation by extending the IService interface. Begin by declaring a role service contract: public interface ISysRoleService extends IService<SysRole> { } The default implemantation uses ServiceImpl, which handles dependency injection of the maper: @Service public class SysRoleService extends ServiceImpl&lt ...

Posted on Sun, 21 Jun 2026 17:02:03 +0000 by a1amattyj

Using Redis with Spring Boot in IntelliJ IDEA

Core Data Types in Redis 1. Strings Strings are the most basic data type — a key maps directly to a value. They can store text, numbers, or serialized objects. SET key value — Assign a value to a key. GET key — Retrieve the value associated with the key. SETEX key seconds value — Set a key with an expiration time in seconds. SETNX key value — ...

Posted on Sun, 21 Jun 2026 16:34:41 +0000 by jmicozzi

Implementing Security in Spring Boot Applications with Spring Security

Introduction to Spring Security Spring Security provides comprehensive security services for Java EE applications. As a core component of the Spring ecosystem, it implements layered security architecture where each application layer can be protected independently. This framework enables fine-grained access control at the controller, service, an ...

Posted on Sat, 20 Jun 2026 16:49:18 +0000 by RabPHP

Implementing Dynamic Spring Boot Scheduled Tasks via Database Configuration

Overview In enterprise-level Java applications, hardcoding cron expressions using the @Scheduled annotation is often inflexible, as updates require recompilation and redeployment. This guide demonstrates how to design a dynamic scheduling system where cron expressions and target execution methods are managed in a relational database. Database S ...

Posted on Fri, 19 Jun 2026 17:58:22 +0000 by Merve

Integrating Tencent HunYuan with Spring AI 1.0.0 Using a Custom Starter

Background and Compatibility Users relying on the 1.0.0-M6 milestone release from Maven Central have reported various runtime exceptions and compatibility mismatches. To address this, the community starter spring-ai-hunyuan has been refactored to align with the official Spring AI 1.0.0 stable release. The updated source code is available here: ...

Posted on Thu, 18 Jun 2026 18:03:22 +0000 by Gho

Build a Deployable Interview-Friendly Personal Blog from Scratch with Linux and Spring Boot

Server OS & Initial Setup When activating a new cloud server, choose between preconfigured application images or a clean Linux distribution. Familiar users should pick an image with JDK 11+, MySQL 8+, and an optional FTP/SFTP integration for a fast environment setup; avoid paid mirror options unless explicitly required. Those new to deploym ...

Posted on Wed, 17 Jun 2026 16:43:23 +0000 by olanjouw

Deploying a Spring Boot Application as a WAR on Tomcat

By default, Spring Boot applications are packaged as executable JARs with an embedded Tomcat server. While convenient for development and microservices, this approach has limitations in certain scenarios—particularly when dealing with file uploads that need to persist acrross application restarts. Since the embedded server starts fresh each tim ...

Posted on Wed, 17 Jun 2026 16:25:46 +0000 by dstockto