Skip to content

Syntax check for Annotations with Spring Expression Language #475

Closed
@MahatmaFatalError

Description

@MahatmaFatalError

Annotations like e.g. @Cacheable, @EventListener or @PreAuthorize take a String literal containing logic in form of SpEL. In general this is error prone since there is no compile-time check.

It would be nice to be warned earlier that the expression is erroneous. It seems this is a feature of IntelliJ:
grafik

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions