Dynamic Cron Expression Management in Spring Applications
In Spring Boot applications, we can enable scheduling support using the @EnableScheduling annotation and create scheduled tasks with the @Scheduled annotation.
The @Scheduled annotation supports three configuration methods for execution timing:
cron(expression): Executes based on a Cron expression.
fixedDelay(period): Executes at fixed interva ...
Posted on Fri, 26 Jun 2026 16:11:50 +0000 by sword
Integrating RocketMQ with Spring Boot: A Deep Dive into Configuration and Source Code
Dependency Setup
To begin, include the starter dependency in your Maven project:
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-spring-boot-starter</artifactId>
<version>2.2.3</version>
</dependency>
This dependency triggers Spring Boot’s auto-configurati ...
Posted on Thu, 25 Jun 2026 16:36:30 +0000 by MnilinM
Implementing Efficient Excel Import/Export in Spring Boot with EasyExcel
Optimizing Excel Data Handling in Spring Boot Applications
When dealing with Excel import/export functionality in Java web applications, memory efficiency becomes crucial. Traditional libraries like EasyPoi or Hutool can consume significant memory, making EasyExcel a better choice for large datasets. This implementation leverages Java 8 functio ...
Posted on Tue, 23 Jun 2026 17:31:45 +0000 by sangamon
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< ...
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