摘要:
1.8-20位数字 or 字母 or 特殊字符var reg = /^[0-9a-zA-Z!@#$%^&*()_+-/.]{8,20}$/;2.8-20位 数字+字母+特殊字符 //正则var reg = /^(?![a-zA-Z0-9]+$)(?![^a-zA-Z/D]+$)(?![^0-9/D... 阅读全文
摘要:
java.lang.UnsupportedClassVersionError: org/apache/lucene/index/IndexableField : Unsupported major.minor version 51.0Apache Lucene 4.8.0发布:不再支持Java 6,... 阅读全文
摘要:
最新jar和src免费下载:http://download.csdn.net/detail/u011518709/8248403lucene 包的组成结构:对于外部应用来说索引模块(index)和检索模块(search)是主要的外部应用入口org.apache.Lucene.search/ 搜索入口... 阅读全文
摘要:
代码如下:for (int i1 = 0, l = list.size(); i1 info = new HashMap();info.put("nodeList", nodeList);info.put("placesLink", placesLink); //数组info.put("Place... 阅读全文
摘要:
struts2的s:iterator 可以遍历 数据栈里面的任何数组,集合等等 以下几个简单的demo:s:iterator 标签有3个属性:value:被迭代的集合id:指定集合里面的元素的id,可以和var属性替换, var 集合对象status :迭代元素的索引实例:外层list, 内层是ha... 阅读全文
摘要:
1.many-to-one@ManyToOne@JoinColumn(name = "user_id") 2.many-to-many/** * 双向关联关系中,有且仅有一端是作为主体(owner)端存在的, * 主体端负责维护联接列,对于不需要维护这种关系的从表则通过mappedBy属性进行声... 阅读全文
摘要:
/** * 导出excel表格 */ @RequestMapping(value = "/doExportData", method = {RequestMethod.POST, RequestMethod.GET}) public void doExportUs... 阅读全文
摘要:
jquery前台处理: var param = {a:a};$.post("*.do",param,function(data) { var columHtml = ""; $.each(data, function(i, item) { columHtml = columHtml +... 阅读全文
摘要:
参考手册:http://www.mossle.com/docs/activiti/一、applicationContext.xml中引入activiti相关配置的xml文件 二、activiti-core-context.xml ... 阅读全文
摘要:
1,CriteriaHibernate 设计了 CriteriaSpecification 作为 Criteria 的父接口,下面提供了 Criteria和DetachedCriteria 。2,DetachedCriteriaSpring 的框架提供了getHibernateTemplate().... 阅读全文