![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Springboot
文章平均质量分 55
学习Springboot和个人总结
程序员卷王
卷不动了
展开
-
hibernate-validation验证 List<T>对象
使用hibernate-validation的注解验证数据的合法性,发现@Valid注解并没有生效如果接收的参数只有单个实体,那使用@Valid是没有问题的,如下图但是在List<User>这种情况,单单使用这个注解是没效果的解决这个问题也比较简单:在Controller上添加@Validated注解,方法上添加@Valid注解,就能验证了附上完整的整合案例1、创建springboot项目,导入依赖<dependencies> <dependency&g原创 2021-05-14 14:24:57 · 2047 阅读 · 0 评论 -
ClassNotFoundException:org.springframework.boot.context.properties.ConfigurationPropertiesBean
springboot 2.1.13.RELEASE 整合 spring-cloud-alibaba-dependencies 2.2.3.RELEASE报错Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationPropertiesBeanat java.net.URLClassLoader.findClass(URLClassLoader.java:381原创 2021-04-06 23:34:15 · 4095 阅读 · 0 评论