Implementing Role-Based Access Control in Spring Boot with Apache Shiro and MyBatis
Project Dependencies
To integrate Apache Shiro into a Spring Boot environment using Gradle, include the necessary starters for web support, MyBatis, and the Shiro core libraries. Below is the configuration for build.gradle:
plugins {
id 'org.springframework.boot' version '2.7.5'
id 'io.spring.dependency-management' version '1.0.15.RELEA ...
Posted on Wed, 28 Oct 2026 16:33:23 +0000 by nainil
JUnit5 Testing Framework: Core Concepts and Practical Implementation
JUnit5 Architecture Overview
JUnit5 comprises three distinct modules that work together to provide a comprehensive testing platform:
JUnit Platform: Serves as the foundation for launching testing frameworks on the JVM. It enables integration with various testing engines and provides a standardized API for test discovery and execution.
JUnit Ju ...
Posted on Wed, 28 Oct 2026 16:30:33 +0000 by jrw4
Fundamentals of JSON Handling with Jackson in Spring Boot
Oevrview of JSON Serialization
In modern application development, data exchange often requires converting Java objects into JSON format and vice versa. Spring Boot automatically integrates the Jackson library for this purpose, providing seamless support for HTTP message converters. While default configurations cover most scenarios, developers f ...
Posted on Tue, 27 Oct 2026 16:43:07 +0000 by Raphael diSanto
Spring Boot Aware Interfaces for Bean Lookup and DataSource Inspection
Spring provides several callback interfaces that let beans interact with the container itself. Two of the most practical are BeanFactoryAware and ApplicationContextAware. Below are concise patterns that I rely on daily.
BeanFactoryAware – type-safe bean retrieval
By implementing BeanFactoryAware we can expose a small static façade that hides th ...
Posted on Tue, 27 Oct 2026 16:21:46 +0000 by Buddski
Bypassing WeChat Payment Integration in a Mini Program Delivery Application
Background
When developing a mini program delivery system following online tutorials, you may encounter situations where a personal WeChat mini program cannot enable WeChat Pay functionality. This article describes how to skip the payment module for testing purposes.
WeChat Pay Sequence Diagram
Skipping WeChat Pay essentially involves bypassing ...
Posted on Tue, 27 Oct 2026 16:19:45 +0000 by dujed
Implementing Secure Image Uploads to Tencent Cloud COS with a Custom Java Utility
Bucket Configuration & Access Policies
Initialize a dedicated storage container within the Tencent Cloud Object Storage (COS) interafce. During the provisioning wizard, configure the bucket permissions to Public-Read, Private-Write. This ACL setting enables direct browser rendering of stored assets while restricting external write access. C ...
Posted on Mon, 26 Oct 2026 16:14:44 +0000 by yasir_memon
Sharing ServletRequest with Background Threads: Pitfalls and Solutions
Scenario Setup
Consider a minimal Spring Boot controller that offloads work to a simple background thread while passing the incoming HttpServletRequest object:
@GetMapping("/fetchData")
public String fetchData(HttpServletRequest incomingRequest) {
String initialValue = incomingRequest.getParameter("code");
System.out ...
Posted on Sun, 25 Oct 2026 16:45:11 +0000 by Teach
Configuring Apache Maven for Spring Boot Development in IntelliJ IDEA
Installing Apache MavenAcquire the binary distribution from the official Apache Maven website and extract the archive contents to a dedicated directory on your system. For this demonstration, we assume the extraction path is D:\dev_tools\apache-maven.System Environment SetupTo execute Maven commands from any terminal location, configure the env ...
Posted on Sat, 24 Oct 2026 16:45:54 +0000 by TabLeft
Configuring Spring Cloud Gateway for Microservice Routing
Spring Cloud Gateway functions as the primary traffic ingress in distributed architectures, directing external requests to appropriate backend services while centralizing concerns such as authentication, rate limiting, and request transformation.
To integrate it into an existing Spring Cloud project, create a dedicated Maven or Gradle module—co ...
Posted on Sat, 24 Oct 2026 16:08:19 +0000 by NoFear
Building a Residential Community Service Platform with SSM and Vue.js
Technology Stack
Backend Framework: Spring Boot
Spring Boot simplifies application setup by embedding servers like Tomcat, Jetty, or Undertow, eliminating the need for manual installation and configuration. Its auto-configuration feature intelligently configures the application based on project dependencies, reducing boilerplate code. The frame ...
Posted on Fri, 23 Oct 2026 16:50:43 +0000 by thegreatone2176