按照 https://blog.csdn.net/forezp/column/info/15397 学习到 SpringBoot非官方教程 | 第十九篇: 验证表单信息 https://blog.csdn.net/forezp/article/details/71023817spring
ubuntu 18.04 + Eclipse 2018.12 建立新 project 中,选择 Spring Starter Project 从以上 SpringBoot非官方教程 直接 copy 代码和 pom 的依赖部分
pom.xml 出现错误!错误提示在 <parent> ,错误地点在 <groupId>org.hibernate</groupId> 的依赖!express
http://hibernate.org/validator/ 显示最新版本 Releases : 6.0 latest stableubuntu
给 hibernate 依赖 加上 <version>6.0</version> 以后,又显示错误: Missing artifact org.hibernate:hibernate-validator:jar:6.0.11 ** 换了几个版本号,都是以上错误
https://blog.csdn.net/oppoppoppo/article/details/55100284spring-boot
给 hibernate 依赖 加上 <version>${hibernate-validator.version}</version> 以后, ok了! ** 可是,会出现黄牌警告: This expression evaluates to 5.3.4.Final The property is defined in org.springframework.boot:spring-boot-dependencies:1.5.2.RELEASE ** 初学阶段,不求甚解!先过了这一关再说! 日后可能天然就明白问题所在了!