About 50 results
Open links in new tab
  1. Spring Expression Language (SpEL) with @Value: dollar vs. hash ($ vs. #)

    Mar 16, 2011 · From the Spring docu: "The Spring Expression Language (SpEL for short) is a powerful expression language that supports querying and manipulating an object graph at runtime.

  2. Invoke method using spring SPEL with property - Stack Overflow

    Feb 23, 2021 · Invoke method using spring SPEL with property Asked 4 years, 10 months ago Modified 3 years, 8 months ago Viewed 16k times

  3. java - #root and #this in SpEL - Stack Overflow

    In Spring 3 SpEL, #this and #root were introduced. The variable #root is always defined and refers to the root context object. Although #this may vary as components of an expression are evalu...

  4. How to reference a bean by type in a SpEL? - Stack Overflow

    Jan 16, 2020 · I was just answering from the SpEL perspective that to reference a @Bean whose name is created from a class name (such as with @Component), it's name has a lower case first char.

  5. SPEL Injection Security concerns for using SPEL - Stack Overflow

    Sep 18, 2023 · We are planning to use SPEL in our SaaS based product to execute conditional expressions. My requirement is to use evaluate conditions where user can write conditional …

  6. Spring Expression Language (SpEL): check empty string?

    Jun 10, 2019 · What is a canonical way to check if the String is null or empty using SpEL? I would like to achieve the same result as Strings.isNullOrEmpty(myString) from Guava does. My candidates: …

  7. Spring Boot version versus Spring Framework version? - Stack Overflow

    Mar 5, 2023 · One person has told me that, as far as they know, "SpEL is stable", and so, the specific Spring version is not that significant. Still, the fact remains: the SpEL docs are Spring-version-specific.

  8. Access to Actual Class Variable from SpEL - Stack Overflow

    Dec 8, 2021 · As per spring's Event handling mechanism, we can use SpEL to select a specific handler under some circumstances. Taken from the spring doc. public class EventXHandler { private String

  9. java - Compare Enums in SpEL - Stack Overflow

    Feb 16, 2014 · At Spring's @Cacheable annotation I want to specify an unless condition. However my return value is neither a primitive type nor a Java bean, but an Enum. How can I compare for equality …

  10. SpEL: How to check if variable matches any element from list?

    Dec 1, 2020 · 2 SpEL is fully based on Java, so whatever you can do with Collection is available in SpEL, too. So, I would implement your request as: {1,2,3}.contains(#id) Having list of desired values …