Skip to content

Error on @ConditionalOnExpression #1349

Closed
@hugograf

Description

@hugograf

Describe the bug
There is an error for @ConditionalOnExpression(“${gt.use.websocket:false}”).

To Reproduce
Annotation

@ConditionalOnExpression("${gt.use.websocket:false}")

produces

SPEL: mismatched input 'gt' expecting {'++', '+', '--', '-', '(', '#', '@', '^[', '![', '!', '&', '?[', '$[', LCURLY, 'true', 'false', 'new', 'null', 'T', IDENTIFIER, NUMERIC_LITERAL, STRING_LITERAL}

Version

Spring Tool Suite 4 

Version: 4.24.0.RELEASE
Build Id: 202407191504

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions