随笔分类 -  web

all about web
nginx tomcat cluster session 同步
摘要:前言 公司系统要做高可用,则需要用多台服务器做成主从或主备集群,这样当一台服务器宕机后,集群还能对外提供服务。 我们拟使用2台服务器做成主从集群,那就必须解决2台服务器中tomcat session同步问题。 tomcat cluster 首先采用的同步方案是tomcat自带的解决方案,即便此方案有 阅读全文

posted @ 2020-07-29 14:04 hzm_frank 阅读(190) 评论(0) 推荐(0)

Hadoop
摘要:一. hadoop Hadoop实现了一个分布式文件系统(Hadoop Distributed File System),简称HDFS。HDFS有高容错性的特点,并且设计用来部署在低廉的(low-cost)硬件上;而且它提供高吞吐量(high throughput)来访问应用程序的数据,适合那些有... 阅读全文

posted @ 2015-05-06 15:46 hzm_frank 阅读(166) 评论(0) 推荐(0)

jsp 验证码
摘要:需要注意在resin下应该使用第二种方式://tomcat下 //resin下255) fc=255; if(bc>255) bc=255; int r=fc+random.nextInt(bc-fc); int g=fc+random.nextInt(bc-fc); int... 阅读全文

posted @ 2014-06-16 18:02 hzm_frank 阅读(223) 评论(0) 推荐(0)

java web各种listener
摘要:Listenter 分类–和ServletContext(application)相关的 ServletContextListener(常用-初始化以及销毁一些东西) ServletContextAttributeListener–和HttpSession相关的 HttpSessionListener(常用-实现在线用户功能) HttpSessionAttributeListener–和ServletRequest相关的 ServletRequestListener ServletRequestAttributeListener配置Web.xml<listener> <lis 阅读全文

posted @ 2013-04-24 09:01 hzm_frank 阅读(219) 评论(0) 推荐(0)

Ueditor JSP HelloWorld及图片上传
摘要:Ueditor首页:http://ueditor.baidu.com/website/HelloWorld:引入:<script type="text/javascript" charset="utf-8" src="../ueditor/editor_all.js"></script><script type="text/javascript" charset="utf-8" src="../ueditor/editor_config.js"& 阅读全文

posted @ 2013-03-01 08:58 hzm_frank 阅读(1031) 评论(0) 推荐(0)

html——黑体、斜体、下划线及删除线
摘要:1.黑体,斜体,下划线,删除线 在HTML中<B>标识符使文字以黑体显示,要让文字以斜体显示,应把文字置于<I>之间。你也可通过<U>来给文 字加下划线。最后如果你需要删除线(有一道横线穿过的文本),应该使用<STRIKE>或<S>标识符。下面是一些例子代码<HTML><HEAD><TITLE> Text Formatting </TITLE></HEAD><BODY><B> To boldly go where no? </B><P 阅读全文

posted @ 2013-01-12 12:16 hzm_frank 阅读(592) 评论(0) 推荐(0)

Web常用Filter
摘要:配置web.xml<!-- 定义Filter --> <filter> <!-- Filter的名字 --> <filter-name>loginFilter</filter-name> <!-- Filter的实现类 --> <filter-class>com.sxdf.rent.servlets.LoginFilter</filter-class> <!-- 下面3个init-param元素配置了3个参数 --> <init-param> <param-name&g 阅读全文

posted @ 2012-11-10 15:41 hzm_frank 阅读(327) 评论(0) 推荐(0)

导航