Inspectopedia Help

Incorrect injecting of SpEL in a static field

Reports attempts to inject Spring Expression Language (SpEL) into static fields ('null' value is injected).


@Controller public class MyController { @Value("#{systemProperties['some.key']}") // Injection to static fields is not allowed static String spelWithDefaultValue; }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Spring, 233.SNAPSHOT

Last modified: 13 July 2023