Spring data rest validation + exception mapper: confusing
问题 I am using Spring Data Rest and all is going well. I want to apply validation (JSR 303) on my entities. The spring docs say I can intercept application events in a few ways (none of which I can get to work, and right now spring.io seems to be down). However, I did get it working by putting @Validated on my respository: @Validated @RepositoryRestResource(collectionResourceRel = "workers", path = "workers") public interface WorkerRepository extends PagingAndSortingRepository<Worker, Long> { }