Tagged articles
SpEL
41 articles · Page 1 of 1
This article explains the differences between Spring Boot's ${} placeholder resolution and #{} SpEL evaluation, detailing their syntax, source code implementations, parsing order in @Value, common pitfalls, and why @ConfigurationProperties doesn't support SpEL.
@ValueConfigurationPropertiesEnvironment
0 likes · 14 min read

The article explains why RBAC fails for complex resource and context permissions, introduces ABAC with SpEL expressions, shows Spring Security integration via PermissionEvaluator, policy storage using SpEL strings, a deny-first policy engine, real-world scenarios (department orders, document visibility, time-based access), list permissions via SQL filtering, hot reload with Caffeine/Redis, and pitfalls like self-invocation and DB calls in policies.
ABACPermissionEvaluatorRBAC
0 likes · 17 min read

This tutorial demonstrates how to create a custom @ConvertJson annotation in Spring Boot 3.5.0 that automatically fetches JSON from a URL parameter and converts it into a typed Java object, using HandlerMethodArgumentResolver and BeanPostProcessor for both method-parameter and field-level injection with SpEL support.
BeanPostProcessorCustom AnnotationHandlerMethodArgumentResolver
0 likes · 12 min read

This article details a production-grade system for implementing dynamic feature toggles and canary releases in Spring Boot, covering architecture design, config-center integration with Nacos/Apollo, code patterns using AOP and strategy routing, traffic-splitting algorithms with user stickiness, A/B test metrics collection, and toggle lifecycle governance with hard TTL cleanup.
ApolloNacosSpEL
0 likes · 20 min read

This article provides a comprehensive interview self‑test on Spring's event‑driven mechanism, covering the three core components, synchronous vs asynchronous handling, the role and default implementation of ApplicationEventMulticaster, adapter flow, async configuration options, @TransactionalEventListener phases, exception propagation, @Order ordering, SpEL condition filtering, a comparison with MQ, POJO events, and the listenerCache optimization.
ApplicationEventBackendSpEL
0 likes · 21 min read

This article provides a comprehensive interview self‑test on Spring Cache, covering annotation differences, AOP internals, SpEL expressions, key generation, Redis serialization, multi‑level caching, consistency strategies, and Caffeine eviction policies, complete with code examples, diagrams, and practical recommendations.
AOPCacheCaffeine
0 likes · 29 min read

This guide explains how to replace static custom‑annotation permission checks in Spring Boot with flexible SpEL expressions, covering annotation design, aspect definition, expression parsing, context setup, and practical usage examples for various access scenarios.
AspectJCustom AnnotationJava
0 likes · 9 min read

This article introduces a powerful, extensible Spring validation component built on SpEL that handles simple annotations, enum checks, multi‑field logic, and Spring Bean integration, providing step‑by‑step setup, usage examples, custom constraints, and performance considerations for Java backend developers.
AnnotationsBackendJava
0 likes · 11 min read

This article explains how to replace static permission annotations in Spring Boot with flexible SpEL expressions, showing step‑by‑step how to create a @PreAuth annotation, an AOP aspect, an expression parser, and a utility class that evaluates role‑ and time‑based access rules at runtime.
AOPCustom AnnotationSpEL
0 likes · 10 min read

This article examines the need for comprehensive business operation logging in a central system, outlines the benefits of audit, security, monitoring, and analysis, and walks through three progressive solutions—AOP with annotations, AOP with SpEL, and a Binlog‑based time‑window approach—detailing their implementations, trade‑offs, and architectural considerations.
AOPJavaLogging
0 likes · 20 min read

This article introduces Spring Expression Language (SpEL) for Spring Boot 3, explains its core features such as collection filtering, projection, Elvis and safe navigation operators, method and bean references, regular‑expression handling, and arithmetic expressions, and provides complete runnable code examples demonstrating each technique.
Expression LanguageJavaSpEL
0 likes · 11 min read

This article walks through Spring Boot’s most useful built‑in features—including request logging, content‑caching wrappers, OncePerRequestFilter, AOP utilities, starter auto‑configuration, flexible property binding, async scheduling, Actuator monitoring, and SpEL expressions—showing how to apply them with concise code examples to boost productivity and reliability.
AOPActuatorAutoConfiguration
0 likes · 14 min read

This article explores a step‑by‑step evolution of business operation logging—from a simple AOP‑annotation approach, through enriched SpEL expressions, to a robust Binlog‑based solution with time‑window aggregation—highlighting benefits, challenges, code examples, and architectural diagrams for backend developers.
AOPSpELbackend architecture
0 likes · 18 min read

This article introduces dynamic expression parsing for enterprise Java applications, compares seven Spring Boot‑compatible expression engines (SpEL, MVEL, Aviator, JEP, OGNL, JEXL, QLExpress) across performance, security and syntax, and provides complete code samples, execution results and pros‑cons for each engine.
AviatorExpression EngineJEP
0 likes · 19 min read

Spring Boot 4.0 (SNAPSHOT) introduces built‑in Spring Framework 7.0 support, elegant API versioning via @RequestMapping, flexible bean registration, virtual thread integration for massive concurrency, JSpecify null‑safety annotations, enhanced SPEL, Jackson 3.x migration, servlet upgrades, and native GraalVM image support, all illustrated with code samples.
API versioningJSpecifySpEL
0 likes · 7 min read

This article explains how Spring Boot leverages JSR‑380 for declarative request validation, walks through the internal processing chain from RequestResponseBodyMethodProcessor to Hibernate Validator, and demonstrates building custom annotations for enum checks and conditional field validation while supporting multilingual error messages.
Custom AnnotationHibernate ValidatorJSR-380
0 likes · 11 min read

This article explores comprehensive strategies for capturing business operation logs in a Spring‑based system, comparing three solutions—from a simple AOP‑annotation approach, through an enhanced AOP + SpEL method, to a robust Binlog‑plus‑time‑window architecture—while weighing their advantages, drawbacks, and implementation details.
AOPBackendSpEL
0 likes · 16 min read

This article introduces a Spring Boot 3 case collection with over 100 permanent examples and then provides a complete tutorial on implementing audit logging using Spring AOP, SpEL, asynchronous processing, custom annotations, JPA entities, and batch persistence to efficiently record operation details.
AOPJavaSpEL
0 likes · 10 min read

This article explains how Spring's @Value annotation can inject literal strings, file values, system properties, defaults, arrays, maps, and SpEL expressions into fields, constructors, setters, and Java records, providing practical code examples for each scenario.
AnnotationsJavaSpEL
0 likes · 6 min read

This tutorial demonstrates how to implement flexible, module‑aware operation logging in Spring Boot 3 by combining custom @Log annotations, AOP aspects, and Spring Expression Language (SpEL) to capture dynamic data such as usernames, product names, and order totals.
AOPBackendJava
0 likes · 9 min read

This article provides a detailed walkthrough of EasyRules' source code, covering its modular project structure, the Facts container, Rule definition, registration via dynamic proxies, the two engine implementations, and the step‑by‑step fire process that drives rule evaluation and execution.
EasyRulesJavaMVEL
0 likes · 20 min read

This article introduces a powerful Java parameter‑validation library based on Spring Expression Language, explains its features, supported annotations, usage examples, configuration steps, and how to extend it with custom constraints, providing a complete guide for backend developers.
BackendCustom AnnotationsJava
0 likes · 12 min read

An in‑depth guide to Spring Expression Language (SpEL) covering its core features, evaluation contexts, parser configuration, collection handling, operators, variables, bean references, and a practical AOP case study, all illustrated with concise Java code examples.
AOPExpression LanguageJava
0 likes · 13 min read

This article explores the motivations, benefits, and step‑by‑step implementations of business operation logging, starting with a simple AOP‑annotation approach, advancing to AOP combined with Spring Expression Language for richer context, and finally leveraging MySQL binlog and time‑window techniques for low‑level, reliable change capture.
AOPBackendLogging
0 likes · 18 min read

This article examines the progressive design of business operation logging—from a basic AOP‑annotation approach, through an AOP‑SpEL enhancement, to a binlog‑based time‑window solution—detailing each method's implementation steps, trade‑offs, and practical considerations for robust audit and monitoring in enterprise systems.
AOPBackendLogging
0 likes · 19 min read

This article explores the evolution of business operation logging in a Java backend, starting from a simple AOP‑annotation approach, advancing to AOP combined with Spring Expression Language for richer context, and finally leveraging MySQL binlog with time‑window processing to achieve comprehensive, low‑intrusion audit trails.
AOPBackendJava
0 likes · 15 min read

This article demonstrates how to create a customizable permission‑checking mechanism in Spring Boot by defining a @PreAuth annotation, an AOP aspect, and leveraging Spring Expression Language (SpEL) to express complex access rules such as role, time, and permission constraints.
Custom AnnotationSpELpermission
0 likes · 10 min read

The article demonstrates replacing fragile if‑else channel logic with a Strategy pattern and Spring Expression Language, storing parameter mappings in a database so that new payment channels or Excel formats can be added simply by configuring SpEL expressions, achieving a flexible, maintainable, data‑driven solution.
BackendDynamic ConfigurationJava
0 likes · 17 min read

This article provides a comprehensive guide to Spring's property injection techniques, covering setter and constructor injection using both XML and Java annotations, external configuration with @PropertySource, and advanced SpEL expressions, complete with runnable code examples and output screenshots.
AnnotationsJavaSpEL
0 likes · 27 min read

This article introduces the BizLog SDK for Java, explains its Spring Boot autoconfiguration, demonstrates how to add Maven dependencies, enable logging with @EnableLogRecord, craft log messages using @LogRecordAnnotation with SpEL expressions, and extend the framework with custom parse functions and operator services.
BizLog SDKJavaLogging
0 likes · 15 min read

This article introduces Spring Expression Language (SpEL), explains its common syntax, demonstrates quick-start examples, shows real-world usage with AOP monitoring, and outlines its internal implementation, providing a concise guide for backend developers working with Spring.
AOPExpression LanguageJava
0 likes · 9 min read


JavaEdgeMar 29, 2022 · Information Security
This guide explains the Spring SPEL injection flaw, how to determine if your Java application is affected by checking JDK version and Spring usage in WAR or JAR packages, and provides official upgrade steps along with temporary WAF and code‑level mitigations.
DetectionJavaRCE
0 likes · 5 min read

This article explains how Spring Security 5.6 simplifies dynamic permission control using annotation, SpEL‑based beans, and the new AuthorizationManager API, providing step‑by‑step code examples and configuration tips for developers seeking flexible, low‑overhead security solutions.
AuthorizationManagerDynamic PermissionsJava
0 likes · 5 min read


21CTONov 9, 2021 · Backend Development
This article explains how to implement clean, decoupled operation logs in Java applications using AOP, SpEL, custom annotations, and dynamic templates, covering use cases, implementation methods, code examples, parsing logic, context handling, and integration with Spring Boot.
AOPJavaLogging
0 likes · 27 min read

This article explains the difference between system and operation logs, presents common log formats, and provides step‑by‑step implementations—including Canal binlog listening, log‑file recording, LogUtil helpers, and a full AOP‑based @LogRecord solution—while detailing template parsing, context handling, custom functions, and persistence in a Spring Boot environment.
AOPCanalJava
0 likes · 27 min read

This article explains the differences between system and operation logs, explores various implementation methods such as Canal, file logging, LogUtil, and method annotations, and demonstrates how to achieve clean, dynamic, and decoupled operation logging in Java Spring applications using AOP, SpEL, custom functions, and a well‑structured logging context.
AOPBackendJava
0 likes · 25 min read

This article introduces a Spring Boot component that automatically records who performed which operation at what time, explains its Maven dependency, configuration, usage of @EnableLogRecord and @LogRecordAnnotation with SpEL expressions, custom operators, detail fields, log categories, and extensibility through custom parse functions and service implementations.
BizLogJavaOperation Logging
0 likes · 13 min read

This article introduces the BizLog SDK for Spring Boot, explains how to add the Maven dependency, enable the @EnableLogRecord switch, use @LogRecordAnnotation for various logging scenarios, customize operators, details, categories, and parse functions, and shows how to extend the framework with custom services and implementations.
BizLogJavaLogging
0 likes · 14 min read


ZhiKe AIMar 11, 2021 · Backend Development
This article provides a comprehensive overview of Spring Expression Language (SpEL), detailing its supported expression types, case‑insensitive keywords, step‑by‑step usage flow, core interfaces, and concrete code examples for literals, arithmetic, relational, logical, ternary, Elvis, variable handling, and property navigation.
EvaluationContextExpression LanguageJava
0 likes · 11 min read

The article describes the motivation, analysis, architecture, performance optimizations, development challenges, and future plans of JD Finance’s LEGO backend platform, which uses Spring Boot, SpEL, Redis, and reactive programming to enable dynamic, high‑performance page configuration for a high‑traffic mobile app.
Reactive ProgrammingSpELbackend architecture
0 likes · 10 min read

The article examines Spring Data REST’s CVE‑2017‑8046 remote‑code‑execution flaw, showing how a malicious JSON Patch path is turned into an unchecked SpEL expression that can run arbitrary commands, reproduces the exploit on a sample Spring Boot app, and advises upgrading to versions that include the path‑verification fix.
Backend SecurityCVE-2017-8046JSON Patch
0 likes · 17 min read
