Tagged articles
OGNL
13 articles · Page 1 of 1
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

This article provides a comprehensive overview of popular Java expression engines—including Spring EL, OGNL, Aviator, MVEL2—and demonstrates how the Hutool facade unifies them with utility classes, offering developers a clear guide to choose and integrate the right engine for their backend applications.
AviatorHutoolMVEL
0 likes · 16 min read

The article surveys popular Java expression engines—including Spring Expression Language, OGNL, Aviator, and MVEL2—detailing their key features and providing lightweight utility wrappers, and highlights Hutool’s unified façade that can encapsulate these engines to simplify dynamic rule evaluation in backend applications.
AviatorExpression EngineHutool
0 likes · 12 min read

This article introduces and compares several Java expression engines—including Spring Expression Language, OGNL, Aviator, MVEL, and Hutool's expression facade—detailing their key features, typical use cases, security considerations, and providing utility class examples with code snippets for each engine.
AviatorExpression LanguageHutool
0 likes · 12 min read

The article reveals that MyBatis’s OGNL treats a single‑character literal like '1' as a Character, causing equality checks against String values in if tags to fail, and shows how using double quotes, toString(), or proper type conversion resolves the comparison pitfall.
DebuggingJavaMyBatis
0 likes · 4 min read

This article investigates a concurrency bug in MyBatis caused by OGNL expression evaluation using reflection, explains the root cause through stack trace and source code analysis, and proposes solutions such as upgrading MyBatis or avoiding private inner‑class methods like Arrays.asList.
JavaMyBatisOGNL
0 likes · 13 min read

When using MyBatis dynamic SQL to filter records by a numeric state field, the framework incorrectly evaluates the condition "state != ''" as false for the integer value 0 because its OGNL expression evaluator treats 0 as equivalent to an empty string, leading to unexpected query results.
Dynamic SQLInteger ComparisonJava
0 likes · 7 min read

This article provides a comprehensive guide to using Arthas for Java backend debugging, covering installation, core trace and watch commands, OGNL expression syntax, practical examples for inspecting method calls, accessing static fields, and integrating with Spring context via advanced command techniques.
ArthasBackendDebugging
0 likes · 11 min read

This tutorial demonstrates how to use Arthas' watch command to monitor Java method entry parameters and return values in real time, explains the required OGNL syntax, shows a practical demo code, and notes performance considerations for online debugging.
ArthasJavaOGNL
0 likes · 3 min read

This article introduces the Arthas watch command, explains its four observation points and main parameters, and shows how to use OGNL expressions to monitor Java method invocations, including arguments, return values, and exceptions.
ArthasDebuggingJava
0 likes · 4 min read

This article introduces the Arthas Java diagnostic tool, explains the powerful ognl command with basic usage examples for inspecting static fields and invoking static methods, and provides a sample Java code snippet illustrating how to apply these techniques in practice.
ArthasJavaOGNL
0 likes · 3 min read

This article explains a rare MyBatis exception caused by a concurrency issue in OGNL expression evaluation, shows the stack trace, reproduces the bug with multithreaded test code, analyzes the root cause in method accessibility, and notes that upgrading to Ognl 2.7 or MyBatis 3.3.0 resolves the problem.
ConcurrencyJavaMyBatis
0 likes · 12 min read

This article dissects the root cause of the ReflectionException thrown when using #{array.length} in MyBatis XML, explains how MyBatis parses XML tags, OGNL expressions, and parameter placeholders, and presents three practical solutions to avoid the error.
BackendJavaMyBatis
0 likes · 14 min read
