Validating the POJO record with Micronaut not working
问题 Using Micronaut bean validation for the record class is not working compile 'io.micronaut:micronaut-validation:2.2.1' Record class @Introspected public record ProductViewModel ( @JsonProperty("id") String id, @JsonProperty("name") @NotBlank @NotNull String name, @JsonProperty("description") @NotBlank String description, @JsonProperty("price") @NotBlank float price ) { } CURL curl --location --request POST 'http://localhost:8084/api/v1/product' \ --header 'Content-Type: application/json' \ -