面向过程 面向对象 封装 继承 super方法 多态 内置方法 元类 异常处理 ...
分类:
其他好文 时间:
2020-05-28 23:35:51
阅读次数:
63
Z.Expression.Eval是一个开源的(OpenSource),可扩展的(Extensible),超轻量级(Super lightweight)的公式化语言解析执行工具包。 使用方法:1、从nuget下载最新的nupkg文件。2、通过VS菜单工具->NuGet程序包管理器->管理解决方案的N ...
分类:
其他好文 时间:
2020-05-28 20:09:50
阅读次数:
200
1、自定义类实现RequestInterceptor接口类: @Component public class FeignInterceptor implements RequestInterceptor{ @Override public void apply(RequestTemplate tem ...
分类:
编程语言 时间:
2020-05-28 16:41:25
阅读次数:
108
http://acm.hdu.edu.cn/showproblem.php?pid=2689 #include<bits/stdc++.h> #define low(x) (x&(-x)) using namespace std; const int maxn=1e5+5; typedef long ...
分类:
编程语言 时间:
2020-05-28 13:40:31
阅读次数:
88
导入 servlet-api.jar(一般不用导,如果报错就导入,在Tomcat根目录的lib文件夹下) web.xml 配置 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, ...
分类:
其他好文 时间:
2020-05-28 00:58:49
阅读次数:
57
1、super 是干嘛用的?在 Python2 和 Python3 使用,有什么区别?为什么要使用 super?请举例说明。答:super 用于继承父类的方法、属性。super 是新式类中才有的,所以 Python2 中使用时,要在类名的参数中写 Object。Python3 默认是新式类,不用写, ...
分类:
移动开发 时间:
2020-05-27 15:09:40
阅读次数:
114
package com.lzl.pojo; import java.io.Serializable;import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; public class Min ...
分类:
其他好文 时间:
2020-05-27 11:57:28
阅读次数:
48
1、整理的思维导图 2、字节码分析 package com.javabasic.synchronizeds; public class ShareData { int num; public synchronized void increase1() { num++; } public void i ...
分类:
其他好文 时间:
2020-05-26 18:11:01
阅读次数:
62
React16.8开始内置了10个Hook,核心是2个: 状态管理:useState 副作用管理:useEffect 有状态的函数 useState 有状态组件写法: class Example extends React.Component { constructor(props) { super ...
分类:
其他好文 时间:
2020-05-26 01:29:30
阅读次数:
100
前言 Java 泛型(generics)是 JDK 5 中引入的一个新特性, 泛型提供了编译时类型安全检测机制,该机制允许开发者在编译时检测到非法的类型。 泛型的本质是参数化类型,也就是说所操作的数据类型被指定为一个参数。 泛型带来的好处 在没有泛型的情况的下,通过对类型 Object 的引用来实现 ...
分类:
编程语言 时间:
2020-05-25 22:23:38
阅读次数:
81