Tag

Spring

0 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Jun 12, 2025 · Information Security

How to Build Single Sign‑On (SSO) with CAS and Session Sharing in Java

This article explains why multiple independent login systems hurt user experience and security, reviews traditional session mechanisms and their limitations in clustered environments, and then presents two session‑sharing strategies and a complete CAS‑based SSO solution with Java code examples.

AuthenticationCASJava
0 likes · 15 min read
How to Build Single Sign‑On (SSO) with CAS and Session Sharing in Java
Java Tech Enthusiast
Java Tech Enthusiast
Jun 9, 2025 · Backend Development

Eliminate Repetitive Audit Fields in Java: 6 Proven Strategies with MyBatis‑Plus, AOP, and JWT

This article presents a production‑tested, six‑step solution for automatically handling common entity fields such as createTime, updateTime, createUser, and updateUser in Java backend systems, covering MyBatis‑Plus auto‑fill, AOP interception, multi‑data‑source adaptation, distributed ID generation, pitfalls avoidance, performance tuning, and audit logging.

AOPAutomatic Field FillingJava
0 likes · 9 min read
Eliminate Repetitive Audit Fields in Java: 6 Proven Strategies with MyBatis‑Plus, AOP, and JWT
Top Architect
Top Architect
Jun 4, 2025 · Backend Development

Implementing Request Debounce in Java Backend Using Redis and Redisson

This article explains how to implement request debouncing in Java backend services using Redis and Redisson, covering the concept, interface types needing debouncing, duplicate request detection, shared cache and distributed lock solutions, with complete code examples and testing results.

BackendDebounceJava
0 likes · 17 min read
Implementing Request Debounce in Java Backend Using Redis and Redisson
Top Architecture Tech Stack
Top Architecture Tech Stack
Jun 4, 2025 · Backend Development

Designing a Unified API Response Structure for Backend Services

This article explains how to design a consistent JSON response format for backend APIs, covering status‑code conventions, message handling, data payloads, a Result wrapper class, controller implementation, a @ResponseResult annotation, interceptor logic, and suggestions for further optimization.

APIAnnotationDesign
0 likes · 7 min read
Designing a Unified API Response Structure for Backend Services
Selected Java Interview Questions
Selected Java Interview Questions
Jun 2, 2025 · Backend Development

Implementing Precise Per‑Minute API Call Statistics in Java: Multiple Solutions and Best Practices

This article explains why per‑minute API call counting is essential for performance bottleneck detection, capacity planning, security alerts and billing, and presents five concrete Java‑based implementations—including a fixed‑window counter, a sliding‑window counter, AOP‑based transparent monitoring, a Redis time‑series solution, and Micrometer‑Prometheus integration—along with a hybrid architecture, performance benchmarks, and practical capacity‑planning advice.

API monitoringJavaPrometheus
0 likes · 25 min read
Implementing Precise Per‑Minute API Call Statistics in Java: Multiple Solutions and Best Practices
Cognitive Technology Team
Cognitive Technology Team
Jun 1, 2025 · Backend Development

Injecting Values into Static Fields in Spring: Techniques and Examples

This tutorial explains why Spring cannot inject @Value directly into static fields and presents three practical solutions—setter injection, constructor injection, and @PostConstruct initialization—along with code examples and a test case to verify successful static value injection.

JavaSpringStatic Field
0 likes · 7 min read
Injecting Values into Static Fields in Spring: Techniques and Examples
Selected Java Interview Questions
Selected Java Interview Questions
May 29, 2025 · Backend Development

Spring Task: A Programmer’s Personal Assistant – Mastering Scheduling in Spring Boot

This tutorial introduces Spring Task, explains how to enable scheduling in Spring Boot, demonstrates creating cron expressions, shows common use cases such as data sync, log cleanup, and email reminders, and provides best‑practice tips for thread‑pool tuning, distributed execution, and avoiding common pitfalls.

BackendJavaSpring
0 likes · 9 min read
Spring Task: A Programmer’s Personal Assistant – Mastering Scheduling in Spring Boot
Architecture Digest
Architecture Digest
May 28, 2025 · Backend Development

Spring 6.0 Core Features and Spring Boot 3.0 Breakthroughs: Virtual Threads, Declarative HTTP Clients, ProblemDetail, GraalVM Native Images, and Monitoring

This article explains the major enhancements in Spring 6.0 and Spring Boot 3.0—including a JDK 17 baseline, Project Loom virtual threads, @HttpExchange declarative HTTP clients, RFC 7807 ProblemDetail error handling, GraalVM native image support, AOT compilation, OAuth2 server setup, and Micrometer‑Prometheus monitoring—while providing a practical upgrade roadmap and code samples.

BackendGraalVMJava
0 likes · 6 min read
Spring 6.0 Core Features and Spring Boot 3.0 Breakthroughs: Virtual Threads, Declarative HTTP Clients, ProblemDetail, GraalVM Native Images, and Monitoring
Code Ape Tech Column
Code Ape Tech Column
May 26, 2025 · Backend Development

Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT

This article presents a production‑validated solution that combines MyBatis‑Plus auto‑fill, AOP, JWT, multi‑data‑source handling, distributed ID generation, performance tuning, and audit logging to eliminate repetitive maintenance of common fields such as createTime, updateTime, createUser, and updateUser in Java backend order services.

AOPBackendCommon Fields
0 likes · 9 min read
Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT
macrozheng
macrozheng
May 23, 2025 · Backend Development

Boost Java Productivity: 17 Essential Utility Classes Every Backend Developer Should Know

This article introduces 17 practical Java utility classes—including Collections, CollectionUtils, Lists, Objects, BooleanUtils, StringUtils, Assert, IOUtils, MDC, ClassUtils, BeanUtils, ReflectionUtils, Base64Utils, StandardCharsets, DigestUtils, SerializationUtils, and HttpStatus—showing how to use them with clear code examples to streamline everyday development tasks.

BackendCode ExamplesJava
0 likes · 30 min read
Boost Java Productivity: 17 Essential Utility Classes Every Backend Developer Should Know
Top Architecture Tech Stack
Top Architecture Tech Stack
May 14, 2025 · Backend Development

Injecting List, Array, Set, and Map from Spring Configuration Files Using @Value and EL Expressions

This article explains how to store and inject collection types such as List, array, Set, and Map in Spring configuration files, demonstrates the pitfalls of using @Value directly, and provides practical solutions using @ConfigurationProperties, EL split functions, and custom decoders for flexible and safe property binding.

BackendConfigurationEL Expression
0 likes · 7 min read
Injecting List, Array, Set, and Map from Spring Configuration Files Using @Value and EL Expressions
Selected Java Interview Questions
Selected Java Interview Questions
May 14, 2025 · Backend Development

Enterprise Java Core Features: Full‑Chain Logging, Unified Exception Handling, Permission Interceptor, and Thread Context Management

This article presents a comprehensive guide to implementing full‑chain log tracing, unified exception handling, permission interception, request latency monitoring, and standardized log formats in enterprise‑level Java projects using Spring AOP, thread‑local context, and Redis caching.

AOPExceptionHandlingJava
0 likes · 23 min read
Enterprise Java Core Features: Full‑Chain Logging, Unified Exception Handling, Permission Interceptor, and Thread Context Management
Java Captain
Java Captain
May 14, 2025 · Backend Development

Rate Limiting in Java: Redis, Spring AOP, and Custom Annotations

This article explains the concept of rate limiting, introduces common algorithms such as token bucket and leaky bucket, and provides a complete Spring‑Boot implementation using Redis, custom annotations, AOP, and utility classes for distributed request throttling.

AOPAnnotationJava
0 likes · 21 min read
Rate Limiting in Java: Redis, Spring AOP, and Custom Annotations
Java Tech Enthusiast
Java Tech Enthusiast
May 11, 2025 · Backend Development

Implementing Automatic Order Cancellation After 30 Minutes: Five Practical Solutions

This article explains why orders that remain unpaid for 30 minutes should be automatically cancelled and compares five technical approaches—database polling, JDK Timer, message‑queue delayed queues, distributed schedulers like Quartz, and Redis expiration listeners—detailing their implementation steps, code samples, pros, cons, and suitable scenarios.

JavaMessage QueueOrder Cancellation
0 likes · 19 min read
Implementing Automatic Order Cancellation After 30 Minutes: Five Practical Solutions
Java Tech Enthusiast
Java Tech Enthusiast
May 8, 2025 · Backend Development

Comprehensive Overview of Spring Ecosystem Upgrades: Spring 6 Core Features, Spring Boot 3.0 Breakthroughs, and Migration Roadmap

The article surveys the Spring 6 and Spring Boot 3.0 upgrades—JDK 17 baseline, virtual threads, @HttpExchange client, RFC 7807 ProblemDetail handling, GraalVM native images, Jakarta EE 9+ migration, enhanced auto‑configuration, OAuth2 authorization server, Prometheus‑compatible metrics—and provides a step‑by‑step migration roadmap with practical recommendations for modernizing e‑commerce applications.

Cloud NativeGraalVMJava
0 likes · 7 min read
Comprehensive Overview of Spring Ecosystem Upgrades: Spring 6 Core Features, Spring Boot 3.0 Breakthroughs, and Migration Roadmap
Java Captain
Java Captain
May 7, 2025 · Backend Development

Spring JdbcTemplate Tutorial: Environment Setup, CRUD Operations, and Advanced Features

This tutorial demonstrates how to configure Spring 6 with JdbcTemplate, create a MySQL database and table, define entity and datasource beans, and perform CRUD operations—including batch updates and callback functions—while also showing integration with the Druid connection pool.

BackendCRUDJava
0 likes · 26 min read
Spring JdbcTemplate Tutorial: Environment Setup, CRUD Operations, and Advanced Features
Code Ape Tech Column
Code Ape Tech Column
May 7, 2025 · Backend Development

Detailed Overview of Spring 6.0 Core Features and Spring Boot 3.0 Enhancements

This article provides a comprehensive guide to Spring 6.0’s new baseline JDK 17 requirement, virtual threads, declarative HTTP clients, RFC‑7807 ProblemDetail handling, GraalVM native image support, and Spring Boot 3.0 improvements such as Jakarta EE migration, OAuth2 authorization server, Prometheus monitoring, and practical migration steps for enterprise applications.

BackendGraalVMJava
0 likes · 8 min read
Detailed Overview of Spring 6.0 Core Features and Spring Boot 3.0 Enhancements
Selected Java Interview Questions
Selected Java Interview Questions
Apr 29, 2025 · Backend Development

Implementing a Chain of Responsibility for an OpenAPI Interface Using Spring and Custom Components

This article explains how to split a multi‑function OpenAPI interface into independent components using the chain‑of‑responsibility pattern in Spring, detailing the abstract base class, concrete handlers, a shared context, execution order configuration, and a test controller with full code examples.

BackendJavaOpenAPI
0 likes · 7 min read
Implementing a Chain of Responsibility for an OpenAPI Interface Using Spring and Custom Components