legacy/Spring
[Spring-Error] BeanValidation groups
heemang_e
2023. 6. 22. 20:56
groups 기능 사용할 때 class가 아닌 interface로 만들어야한다.
// public interface SaveCheck {}
public class SaveCheck{}
exception [Request processing failed; nested exception is javax.validation.
ValidationException: HV000045: A group has to be an interface.
hello.itemservice.domain.item.SaveCheck is not.] with root cause