配置Tomcat web保存文件到项目路径之外

摘要: <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="" docBase 阅读全文
posted @ 2016-12-21 14:13 jsonlib 阅读(339) 评论(0) 推荐(0)

Java 获取汉字拼音的方法

摘要: package lius.util; import java.io.Serializable; import java.util.ArrayList; public class JString { private static ArrayList pinyin = new ArrayList(395 阅读全文
posted @ 2016-12-21 11:48 jsonlib 阅读(2844) 评论(0) 推荐(0)

session过期时间

摘要: 在一般系统登录后,都会设置一个当前session失效的时间,以确保在用户没有使用系统一定时间后,自动退出登录,销毁session。 具体设置很简单: 在主页面或者公共页面中加入:session.setMaxInactiveInterval(900); 参数900单位是秒,即在没有活动15分钟后,se 阅读全文
posted @ 2016-12-06 14:41 jsonlib 阅读(300) 评论(0) 推荐(0)

web网站获取客户端mac地址

摘要: <HTML><HEAD><TITLE>WMI Scripting HTML</TITLE> <META http-equiv=Content-Type content="text/html; charset=gb2312"> <SCRIPT language=JScript event="OnCom 阅读全文
posted @ 2016-11-30 10:42 jsonlib 阅读(2698) 评论(0) 推荐(0)