//对书的单价校验不能是空,价格在20-100之间 //对书的单价校验不能是空,价格在20-100之间 @DecimalMax(value = "100", message = "价格不超过100元") @DecimalMax(value = "100", message = "价格不超过100元" ...
分类:
编程语言 时间:
2019-10-28 10:54:37
阅读次数:
107
接口方法往往需要对入参做一些校验,从而判断入参是否合格,而javax.validation包为我们提供了一些常用的参数校验注解,使用起来很方便。 下面这个示例是检验入参对象中的password是否为空 1. 创建一个User.java 2. 接口方法 3. 测试代码 4. 测试结果 在测试代码中, ...
分类:
其他好文 时间:
2019-10-27 00:57:21
阅读次数:
170
传送门 "Luogu" 解题思路 考虑直接模拟 $\text{BFS}$ 的过程。 对于每一个节点的儿子,先遍历在输入序列中靠前的,判断 $\text{BFS}$ 是否匹配即可。 细节注意事项 + 注意一下输出格式 参考代码 cpp include include include include i ...
分类:
其他好文 时间:
2019-10-26 23:26:08
阅读次数:
165
PANIC: could not locate a valid checkpoint record
日志:无效的主要检查点记录
postgres 集群故障修复
分类:
其他好文 时间:
2019-10-24 10:22:59
阅读次数:
122
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl ...
分类:
其他好文 时间:
2019-10-23 00:33:50
阅读次数:
102
问题解决自:https://stackoverflow.com/questions/27132968/convert-mongodb-bsondocument-to-valid-json-in-c-sharp 我当时提出的问题:https://q.cnblogs.com/q/121704/ 接下来就 ...
一、人民币二分类 描述:输入人民币,通过模型判定类别并输出。 数据:四个子模块 数据收集 -> img,label 原始数据和标签 数据划分 -> train训练集 valid验证集 test测试集 数据读取 -> DataLoader ->(1)Sampler(生成index) (2)Datase ...
分类:
其他好文 时间:
2019-10-21 19:18:53
阅读次数:
127
公司tomcat从8.0.22更换到高版本的9.0.22以后,postman请求没问题,但是终端请求总是400 报Invalid character found in the request target. The valid characters are defined in RFC 7230 a ...
分类:
其他好文 时间:
2019-10-21 16:05:27
阅读次数:
314
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w ...
分类:
其他好文 时间:
2019-10-21 10:01:02
阅读次数:
79
Given a linked list, remove the n-th node from the end of list and return its head. Example: Note: Given n will always be valid. Follow up: Could you ...
分类:
其他好文 时间:
2019-10-21 09:25:57
阅读次数:
82