技术文章
文章平均质量分 60
lyilei
这个作者很懒,什么都没留下…
展开
-
Acegi Security System for Spring 书摘(I)
Enterprise Application Security ChoicesTypical RequirementsLet’s briefly recap some of the key iterms used when discussed computer security. The term principal refers to a user, service, or agent原创 2006-05-11 23:40:00 · 778 阅读 · 0 评论 -
ThreadLocal
ThreadLocal不是用来解决共享对象的多线程访问问题的。一般情况下,通过ThreadLocal.set()到线程中的对象是该线程自己使用的对象,其他线程是不需要访问的,而且也访问不到。各个线程中访问的是不同的对象。 ThreadLocal使得各线程能够保持各自独立的一个对象,并不是通过ThreadLocal.set()来实现的,而是通过每个线程中的new对的操作来创建的对象,每个线程创建一个,不是什么对象的拷贝或副本。 通过ThreadLocal.set()将这个新建的对象的引用保存到各线程的自己原创 2011-02-25 14:47:00 · 546 阅读 · 0 评论 -
SharedByteArrayInputStream 本不该出现的异常
近日在用 JavaMail 编写发送 E-mail 的应用,在一段十分普通的 Java 代码中出现了如下的一段异常:DEBUG: setDebug: JavaMail version 1.3.2Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInpu原创 2007-06-15 23:10:00 · 7014 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: weblogic/security/subject/AbstractSubject
在 Spring 中配置了一个 WebLogic 的 Data Source,然后在 JUnit Test 类中直接初始化加载 applicationContext.xml,当Spring Framework 初始化该 Data Source 时,出现如下的异常信息:org.springframework.beans.factory.BeanCreationException: Error cr原创 2007-06-18 21:52:00 · 6604 阅读 · 0 评论 -
study notes for EJB 3 in action (II)
EJB 3 in Action1.2 Understanding EJB typesAs weve briefly metioned, session beans and message-driven beans (MDBs) are used to build business logic, and they live in the container, which manages these原创 2007-06-17 22:45:00 · 1034 阅读 · 0 评论 -
配置 liunx 下 send mail
从没有接触过 Linux ,更不用说如何配置 send mail。在从PM那里接到这个 task 之前,对邮件服务器的概念是比较模糊的,更不知道还有 send mail 这么一档子事情。既然 task 的 deadline 已经制定,并且就是一周之后的这个时间,天,只能从 google 开始了。(看来以后还真的需要对 Linux 进行一些必要的了解,至少应该知道 etc 目录在什么地方,因为这个我原创 2007-06-15 23:40:00 · 1432 阅读 · 0 评论 -
RSS学习摘要
RSS 具有许多含义,从 “RDF Site Summary” 到 “Rich Site Summary” 到 “Really Simple Syndication”。我最喜欢最后这个术语,因为我认为它最好地将 RSS 描述为服务。RSS 可以仅仅被称为 XML 聚合,因为它是基于 XML 语言的。RSS 文件是标准的基于 XML 的文件,为联合和聚集 Web 内容提供了一种方法。在当今世界中,您原创 2007-06-05 20:17:00 · 821 阅读 · 0 评论 -
Prefactoring
PrefactoringChapter three General Development IssuesStart with the Big PictureTHINK ABOUT THE BIG PICTUREDecisions within a system should be congruent with the big picture.Interface ContractsCREAT原创 2007-05-15 22:39:00 · 709 阅读 · 0 评论 -
java.lang.IllegalArgumentException: com.bea.portlet.prefs.spi.DefaultPreferenceStore
在 Weblogic 上部署 Portal EAR Project 时,在 Weblogic 控制台上出现如下的异常提示:java.lang.IllegalArgumentException: com.bea.portlet.prefs.spi.DefaultPreferenceStore at com.bea.portlet.prefs.spi.ProviderFactory.c原创 2007-04-30 22:57:00 · 1760 阅读 · 0 评论 -
NotWritablePropertyException
在 WebLogic Server 9.2 上部署 Spring 时,抛出 NotWritablePropertyException 异常。根据 stack 信息显示发现是无法装配 某些 bean 相关的 property。但是配置信息都是依据 Spring 的的规范进行配置的,不可能产生错误的。后来在网上搜索一下相关的资料发现好多同学都碰到这种情况,而且产生异常的原因比较古怪。大部分都是由于原创 2007-04-24 20:47:00 · 6711 阅读 · 0 评论 -
Spring--quartz中cronExpression配置说明
Spring--quartz中cronExpression配置说明 字段 允许值 允许的特殊字符 秒转载 2007-07-06 14:06:00 · 1912 阅读 · 0 评论 -
study notes for EJB 3 in action (III)
EJB3 in Action1.3 Getting inside EJB1.3.1 Accessing EJB services: the EJB container.Just as the JVM transparently manages memory on your behalf, the container transparently provides EJB component serv原创 2007-06-20 22:59:00 · 849 阅读 · 0 评论 -
利用 JdbcTemplate 自动返回 MS SQL SERVER 2005 自增主键值
JDBC3 中可以直接获取当前插入记录的 ID 值,具体的调用方式如下:Statement stmt = conn.createStatement();stmt.executeUpdate("INSERT INTO authors (first_name, last_name) values (′George′, ′Orwell′)", Statement.RETURN_GENERATED原创 2007-06-20 22:09:00 · 6205 阅读 · 0 评论 -
Acegi Security System for Spring书摘(III)
Acegi Security in a NutshellAcegi Security comprises a set of interfaces and classes that are comfigured through a Spring Ioc container. Acegi Security is heavily interface-driven, providing signifi原创 2006-05-13 15:12:00 · 956 阅读 · 0 评论 -
算法时间复杂度基础
算法的时间复杂度(Time Complexity) 反映了程序执行时间随输入规模增长而增长的量级,在很大程度上能很好反映出算法的优劣与否。 算法时间复杂度,从数学上定义,给定算法A,如果存在函数F(n),当n=k时,F(k)表示算法A在输入规模为k的情况下的运行时间,则称F(n)为算法A的时间复杂度。 算法渐进时间复杂度,设F(n)为算法A在最坏情况下F(n),则如果F(n)属于Θ(g(n)),则说算法A的渐近时间复杂度为g(n),且g(n)为F(n)的渐近确界。 常见的时间复杂度,按数量级递增排列原创 2011-02-23 13:08:00 · 863 阅读 · 1 评论