Skip to content

EL-based validation message interpolation does not work when using spring-boot-starter-webflux #16596

@wilkinsona

Description

@wilkinsona

spring-boot-starter-webflux does not include an EL implementation. This means that EL-based interpolation for validation messages does not work. For example, with an annotation like this:

@Size(min = 2, max = 14, message = "The item '${validatedValue}' must have {min} to {max} characters")
private String item;

The resulting message will look like this:

The item '${validatedValue}' must have 2 to 14 characters

Adding an EL implementation to the classpath changes the message to this:

The item 'a' must be between 2 and 14 characters long

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions