validation error for @pattern

2019-09-09 20:58发布

问题:

Getting validation error for

@NotNull
@NotEmpty
@Pattern(regexp ="^[0-9a-zA-Z,.\'_+*()?;\"!$%#@={}]$[\\/®™©|&-]*$")
private String testListName;

I am passing the testlist name in json format to create a resource using restservice. and getting validation error.

{"testListName":"longlist"}