Skip to content

@CacheEvict condition uses wrapper comparison instead of actual objects #32960

@yangwenliang123

Description

@yangwenliang123
@CacheEvict(key = "#type", condition = "#result > 0") @Override public Mono<Long> delete(String type) { return r2dbcEntityTemplate.delete(Query.query(Criteria.where("type").is(type)), SysDict.class); }
org.springframework.expression.spel.SpelEvaluationException: EL1013E: Cannot compare instances of class reactor.core.publisher.MonoOnAssembly and class java.lang.Integer 

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions