一、ServletConfig对象 ServletConfig是一个接口,它的对象是由服务器创建的,然后传递给Servlet的init()方法,你可以在init()方法中使用它。 该接口中有4个方法: ServletConfig对象对应web.xml文件中的 xml One cn.itcast.se ...
分类:
其他好文 时间:
2020-04-18 11:55:32
阅读次数:
66
JAVA开发过程中经常会涉及到跟踪源码或查看架构师核心代码的活动。在核心代码或源码中常见有<T>,<E>,<K,V>,Class<?>,<?extendsT><?superT>相关的代码。看起来十分高大上,又不容易看懂,可能会吓退一些同学。在此做一次整理,并附相应代码供调试理解。<T>,<E>,<
分类:
编程语言 时间:
2020-04-18 10:10:12
阅读次数:
71
javascript脚本语言,使用在浏览器中,控制网页中的文档对象 和 与用户进行交互时。 jquery为javascript中的一个类库,集成javascript中常使用的功能,可实现javascript中的大量功能。 1. 从 baidu CDN content delivery network ...
分类:
编程语言 时间:
2020-04-17 23:37:39
阅读次数:
148
LRU 算法描述 LRU 算法实际上是让你设计数据结构:首先要接收一个 capacity 参数作为缓存的最大容量,然后实现两个 API,一个是 put(key, val) 方法存入键值对,另一个是 get(key) 方法获取 key 对应的 val,如果 key 不存在则返回 -1。 注意哦,get ...
分类:
编程语言 时间:
2020-04-17 23:27:31
阅读次数:
179
function addOne(a) { return a + 1; }; function multiTwo (a) { return a*2; } function divThree (a) { return a/3; } function toString (a) { return a + ' ...
分类:
其他好文 时间:
2020-04-17 21:58:51
阅读次数:
246
报错信息 Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program 原 ...
分类:
编程语言 时间:
2020-04-17 20:09:52
阅读次数:
114
chrome离线安装包最新版 下载地址 Chrome离线安装包最新版本64位 x64 https://www.google.cn/chrome/?standalone=1&platform=win64 Chrome离线安装包最新版本32位 x86 https://www.google.cn/chro ...
分类:
其他好文 时间:
2020-04-17 15:37:41
阅读次数:
78
1 # __author__:Kelvin 2 # date:2020/4/16 21:55 3 import socket 4 import select 5 6 # 自定义异步IO框架内容 7 #用来封装socket对象,host,和回调函数 8 class HttpRequest: 9 def ...
分类:
其他好文 时间:
2020-04-17 09:44:42
阅读次数:
57