spring boot 2.3 使用了hibernate-validator 依赖 5.几版本
在string 上面使用 @notblank注解报错
换成6.几就好了
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.1.6.Final</version>
</dependency>