In Java we can use custom annotation to validate the fields but apart from this is there any way we can set the value of variable based upon logic using custom annotation in java or spring boot. See example below
@CustomAnnotation
private String name;
if setter method set the value to name is "$123See"
our custom annotation automatically modify the value to name "see"
by remove some characters or based upon our own logic.