`
wangli9li
  • 浏览: 33003 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

Jar包管理问题

    博客分类:
  • Java
今天在集成Hibernate4.1.8到现有系统中,但一直出现NoSuchField的Exception。最终发现是现有系统中的log4j版本太太太老了,换成最新版本就OK了。 看着现在系统中几十个Jar包,都不知道哪些真正需要,哪些可以删掉,哪些版本可以更新,该如何管理呢?目前还不知道,以后会查查看。
我们的项目使用Mondrian。 前几天,后端ETL的Patch导致一张聚集表的行数过少,以至于被Mondrian误认为是高级别的聚集表,很多关键的MDX最终都查询了这个表。 更可恶的是这张表里的数据是错的,还不如没有这张表,要是没有的话,至少从fact表或其他低层聚集表直接聚集都还能得到正确的数据。 现在,后端ETL的过程修复了,那个聚集表的行数也正常了,但是Mondrian仍然在使用这张表。重启应用可以解决,于是让管服务器的重启tomcat,但杳无音讯,也不是长久之计。 后来我想了一个办法:暴露一个URL,该URL对应的Controller会调用CacheControl的flushSchem ...

5个CSS规则优先级

    博客分类:
  • CSS
•  User styles flagged as !important •  Author styles flagged as  !important •  Author styles •  User styles •  Styles applied by the browser/user agent --from CSS Mastery
"语"要循"法":小议"to do"和"to be done" 转载自http://blog.sina.com.cn/s/blog_4ab4de4301000b8t.html  有这样一道单项选择题:   -Johnson, do you have clothes _____ ? It's Sunday.   -No, thank you. You may have a rest or do something else.   A. washing    B. washed   C. to wash    D. ...
jquery.cookie A simple, lightweight jQuery plugin for reading, writing and deleting cookies. Installation Include script *after* the jQuery library (unless you are packaging scripts somehow else):     <script src="/path/to/jquery.cookie.js"></script> Usage Create session c ...
For HTML, JSP or other similar web pages, the Eclipse default format policy may not satisfy you. For me, I'd like one tag one line. To change the default policy, you should open the preference window from menu 'Window': window-->preference-->Web-->HTML files-->Editor, then find the 'Inlin ...
Aspect-Oriented提出了一种新的代码组织方案,即日志代码、安全代码、事务代码等辅助性代码(Ancillary functionalities)不应该与业务逻辑代码交织在一起。这些功能可通过框架的AOP特性来参与程序。 为了重用通用的功能,可以使用继承和代理。但是它们各有弊端。 Aspect提供了另外的方案: 在AOP的帮助下,我们可以集中地定义这些通用功能,然后再设置这些功能的应用方式和位置,而不用修改那些需要应用这些新功能的类文件。这些通用功能的集结地就成为Aspect。 AOP中的术语:Advice, Pointcut, Join points Advice定义了辅助功能与 ...
【网摘】 在J2SE 5.0版本中,java语言引入了很多新的特性,本文将主要介绍static import。static import主要解决的问题是方便开发人员创建和使用全局的常量以及静态的方法。要使用这一新的特性您应该首先从java.sun.com下载最新的j2sdk 5 ...

UML2.0 顺序图

    博客分类:
  • Java
Lifelines are drawn as a box with a dashed line descending from the center of the bottom edge. When a lifeline has an underline, it means that the lifeline represents a specific instance of a class in a sequence diagram, and not a particular kind of instance (i.e., a role). Simply put, instance names ...
Today I entered my GA account and found new version GA. One important new feature is REAL-TIME DATA. I tested it with my blog, and was surprised by the sensibility: just one second later, the number reflected my testing page view. What a powerful Google! Do fewer things, but do them better!!!
http://ejohn.org/blog/how-javascript-timers-work/
Struts 2的目标是自动化Java Web开发中的常用操作,提高开发效率。 Struts 2中的action, result和FilterDispatcher分别是对model,view和controller的实现。FilterDispatcher将HTTP请求映射到相应的action(映射关系是在项目配置文件里定义的)。Action组件用来实现数据和业务逻辑。JSP,Velocity Template,Freemaker或一些其他的展现层技术为视图(view)服务。 FilterDispatcher转发请求到某action时,如果该action没有实例化,则创建一个实例,关联到一个新的 ...
设置公式:cell.setCellFormula("formulaString") //formulaString开头不需要带'='符号。 获取公式:cell.getCellFormula()

Json快速充电

JSON:JavaScript Object Notation 轻量级数据交换格式 JSON建立在两种结构之上: 名值对的集合,在不同语言中它可能被实现为对象/记录/字典/哈希表/键列表/关联数组。 值的有序列表,在大部分语言中,它被实现为数组/vector/list/队列。 这些是通用数据结构。virtually,所有的现代编程语言都支持。所有可交换的数据格式都基于这些结构。 Object: {string:value, string:value, ...} Array: [value,value,...] value可以是双引号括起来的字符串,也可以是数字,或者是true, false, ...
JavaScript快速充电 Netscape发明的,思想来自函数语言Schema和Self,有点接近Python. 特征:弱类型,动态解析,函数是对象,对象基于Prototype 前三个特征容易理解,最后一个要重点解释。 最基本的最佳实践:在大型程序中使用Fuction ...
Global site tag (gtag.js) - Google Analytics