因为@NotBlank @NotNull @@NotEmpty无法单独使用,需要配合@Valid一起使用。 在属性上添加@NotBlank后,还要在控制器层的参数中添加@Valid,如下图 ...
分类:
其他好文 时间:
2020-06-11 19:27:47
阅读次数:
168
回文数https://leetcode-cn.com/problems/palindrome-number/ class Solution(object): def isPalindrome(self, x): xx=str(x) if(xx==xx[::-1]): return True else ...
分类:
其他好文 时间:
2020-06-10 21:26:47
阅读次数:
62
ERROR from mpegvparse0:No valid frames found before end of stream Error from decodebin0: GStreamer encountered a general stream error 上述两个错误是在视频解码时出现错 ...
分类:
其他好文 时间:
2020-06-09 18:30:46
阅读次数:
71
内容回顾 forms组件源码 # 入口:form_obj.is_valid() ? # 校验字段和钩子函数的执行 ? # 报错提示 其实可以有两种方式(针对局部钩子函数) 1.self.add_error() 2.raise ValidationError() ? """ python源码里面使用最 ...
分类:
其他好文 时间:
2020-06-08 19:08:04
阅读次数:
53
public class Palindrome_Number9 { public static boolean isPalindrome(int x) { if(x<0){ return false; } String result=new Integer(x).toString(); for(in ...
分类:
其他好文 时间:
2020-06-07 15:11:13
阅读次数:
54
今日内容概要 forms组件 cookie与session django中间件 目前可以说是所有web框架里面写的最好的 csrf跨站请求伪造 视图函数(CBV)如何添加装饰器 forms组件源码 """ 切入点: form_obj.is_valid() """ def is_valid(self) ...
分类:
其他好文 时间:
2020-06-06 22:00:28
阅读次数:
78
* forms组件* cookie与session* 视图函数(CBV)如何添加装饰器### forms组件源码```python"""切入点: form_obj.is_valid()"""def is_valid(self): """ Returns True if the form has no ...
分类:
其他好文 时间:
2020-06-05 22:56:41
阅读次数:
83
今日内容概要 forms组件源码 cookie与session 今日内容详细 forms组件源码 1 """ 2 切入点: 3 form_obj.is_valid() 4 """ 5 def is_valid(self): 6 """ 7 Returns True if the form has n ...
分类:
其他好文 时间:
2020-06-05 19:36:42
阅读次数:
67
报错:👇👇 Attempted to add application window with unknown token XXXUnable to add window——token android.os.BinderProxy@196e65b8 is not valid;is your act ...
分类:
移动开发 时间:
2020-06-05 11:40:11
阅读次数:
83
重建索引 alter index pk_kc03 rebuild 批量查询无效索引 select 'alter index '||index_name||' rebuild online;' from user_indexes where status <> 'VALID' and index_na ...
分类:
数据库 时间:
2020-06-03 17:15:41
阅读次数:
79