Spring Security(2)基于动态角色权限校验 在上一章我们了解到了 Security 是怎么进行基础配置的,下面我们要进行对数据库访问和权限分配的操作。 如果还不了解怎么进行基本配置请查阅 [Spring Security(1)入门体验](https://www.cnblogs.com/ ...
                            
                            
                                分类:
编程语言   时间:
2020-07-05 13:24:00   
                                阅读次数:
142
                             
                    
                        
                            
                            
                                一、基本语法 assert expression1, ["," expression2] x, y = 1, 2 assert x == y, "not equal" # 等价于下面的语法: x, y = 1, 2 if __debug__ and not x == y: raise Asserti ...
                            
                            
                                分类:
其他好文   时间:
2020-07-03 21:34:40   
                                阅读次数:
50
                             
                    
                        
                            
                            
                                Given an array A of integers, return true if and only if we can partition the array into three non-empty parts with equal sums. Formally, we can parti ...
                            
                            
                                分类:
其他好文   时间:
2020-07-03 21:13:36   
                                阅读次数:
57
                             
                    
                        
                            
                            
                                    写在前面 ES2020(即 ES11)上周(2020 年 6 月)已经正式发布,在此之前进入 Stage 4 的 10 项提案均已纳入规范,成为 JavaScript 语言的新特性 一.特性一览 ES Module 迎来了一些增强: import():一种可以用动态模块标识异步引入模块的的语法 im ...
                            
                            
                                分类:
其他好文   时间:
2020-07-03 10:52:07   
                                阅读次数:
128
                             
                    
                        
                            
                            
                                    Set接口 extend Collection接口 特点:1、不允许重复的元素 2、设有索引,没有带索引的方法,也不能进行普通for 3、是一个元素的集合,存取可能不一致 4、底层是哈希表(查询快) 方法上和Collection一致 实现类:HashSet:由哈希表构成 例:Set<Integer> ...
                            
                            
                                分类:
其他好文   时间:
2020-07-03 00:59:20   
                                阅读次数:
55
                             
                    
                        
                            
                            
                                    数组初始化与匿名数组 数组的声明 以下语句仅仅是声明变量a,并没有对a进行初始化成为真正的数组 int[] a; int a []; 初始化 使用new运算符创建数组 不使用new运算符 // 使用new int[] a = new int [100]; // 创建数组对象并同时赋予初始值 int[ ...
                            
                            
                                分类:
编程语言   时间:
2020-07-02 22:13:02   
                                阅读次数:
63
                             
                    
                        
                            
                            
                                    一、lombok projectlombok 使用lombok消除冗余的代码,需要安装ide插件,具体参考官网 @Data :注解在类上;提供类所有属性的 getting 和 setting 方法,此外还提供了equals、canEqual、hashCode、toString 方法 @Setter: ...
                            
                            
                                分类:
其他好文   时间:
2020-07-01 15:55:32   
                                阅读次数:
57
                             
                    
                        
                            
                            
                                    import unittest def sum_number(a, b): return a + b class MyTestCase(unittest.TestCase): # def test_something(self): # self.assertEqual(True, False) @c ...
                            
                            
                                分类:
编程语言   时间:
2020-07-01 00:08:35   
                                阅读次数:
105
                             
                    
                        
                            
                            
                                String类 属于不可变字符串,是字符串常量 equal方法 比较两个对象的内容是否相同,==是比较两个对象的内 存地址是否相同常量都是存在jvm,方法区的常量池当中 String str1 = "123"; String str2 = "123"; System.out.println(str1 ...
                            
                            
                                分类:
其他好文   时间:
2020-06-30 22:11:47   
                                阅读次数:
57