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

Chunked File Upload Implementation with Vue.js and Spring Boot

File Hashing Strategy To establish file uniqueness, implement an MD5 hash calculation using a sampling approach. This method processes the entire first and last chunks while sampling portions of intermediate chunks: async generateFileHash(chunks) { return new Promise(resolve => { const hasher = new SparkMD5.ArrayBuffer(); const sam ...

Posted on Mon, 15 Jun 2026 17:19:58 +0000 by brandond

Developing a Food Snatching and Sharing Platform for WeChat Mini Program Users

Given the widespread adoption of WeChat, the client side of this platform is developed as a WeChat Mini Program to align with real-world usage scenarios. 1. Implementing WeChat Login (Controller Layer) @PostMapping("/wechat-login") @ApiOperation("WeChat user authentication") public Result<AuthResponseVO> authenticate(@ ...

Posted on Mon, 15 Jun 2026 16:51:24 +0000 by skter4938