- 博客(4)
- 资源 (2)
- 收藏
- 关注
转载 利用cookies 保存登录信息
Cookie cousername=new Cookie("username",username); Cookie coEmail=new Cookie("Email",Email); Cookie cologinDate=new Cookie("loginDate",now); //把输入的资料设定给各个cookie int time=7*24*60*60;
2015-04-21 15:27:42 246
转载 读写配置文件
<—-转载—>读文件这里写代码片Java代码 收藏代码public static String getProperty(String key) { String value = ""; //第一步是取得一个Properties对象 Properties props = new Properties(); //第二步是取得配置文件的输入流
2015-04-21 13:35:03 224
转载 Web.xml配置详解之listener
定义:com.myapp.MyListener 作用该元素用来注册一个监听器类。可以收到事件什么时候发生以及用什么作为响应的通知。事件监听程序在建立、修改和删除会话或servlet环境时得到通知。常与context-param联合使用。listen-class 指定监听类,该类继承ServletContextListener 包含初始化方法contextInitiali
2014-12-23 14:26:40 376
转载 Web.xml配置详解之context-param
格式定义:context-param>param-name>contextConfigLocationparam-name>param-value>contextConfigLocationValue>param-value>context-param>contextConfigLocationcontextConfigLocationValue>
2014-12-23 14:22:23 223
跟我学Nginx+Lua开发
2017-09-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人