概要 Spring Boot(1.5.6)ではJSONをエンティティーに変換して受け取ることが出来るが、そのエンティティーに対して精査(バリデーション)をすることも出来る。 精査にはHibernateを使っているようだが、spring-boot-starter-data-restが依存関係に入っていれば、自動的に使用できる。 build.gradle: ~ dependencies { compile('org.springframework.boot:spring-boot-starter-data-rest') compile('org.springframework.boot:spring-boot-starter-security') compile('org.springframework.boot:spring-boot-starter-thymeleaf') runtime(